0
我用一个CMS叫Vivvo,并vivvo自带.htaccess文件从默认的规则如下:的.htaccess规则来覆盖友好的URL行为
RewriteEngine On
RewriteRule ^sitemap\.xml$ index.php [L]
RewriteRule ^(.*)(\.html|\.htm)$ index.php [L]
RewriteRule ^(.*)(\.rss|\.atom|\.txt)$ index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/?$ index.php [L]
有一个在我的根目录称为book/
文件夹我需要从外面访问。然而,无论何时输入www.mydomain.com/book vivvo都会将我发送到定制的404错误页面。
我可以使用什么规则,以使Web服务器忽略“RewriteCond”并让用户进入正确的目录?
我想这没有成功:
RewriteRule book/ book/index.php [L]
谢谢!它像一个魅力一样工作! – ILikeTacos 2012-07-30 16:50:32
非常欢迎你:) – kodeart 2012-07-30 16:51:40