0
我正在为我的网站使用框架(zend 2);它使用ht.access将所有URL请求重定向到索引页面。这可以正常工作。如何在访问文件上添加子访问路径
但是,我知道要添加一个WordPress的博客网站。
我不想让博客服从于Zend模块,因此需要在网站内部独立。这意味着它不能受制于ht访问规则。
Accordignly,Iwant所有网址有博客的目录
即www.sampleSite /博客
不受到任何HT访问规则。
以下是我的HT访问规则。你会注意到所有的URL请求都被重定向到索引页面。
RewriteEngine On
# The following rule tells Apache that if the requested filename
# exists, simply serve it.
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# The following rewrites all other queries to index.php. The
# condition ensures that if you are using Apache aliases to do
# mass virtual hosting, the base path will be prepended to
# allow proper resolution of the index.php file; it will work
# in non-aliased environments as well, providing a safe, one-size
# fits all solution.
RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]
我现在该如何从这些规则