全球主机交流论坛

标题: htaccess 问题 [打印本页]

作者: cooc123    时间: 2013-2-27 18:49
标题: htaccess 问题
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)\.html$ ?c=archives&alias=$1 [L]
</IfModule>

访问http://xxx.com/sitemap.html  这个文件存在


网上说 RewriteCond %{REQUEST_FILENAME} !-f 文件存在就不RewriteRule 了


为什么还是 执行了 RewriteRule ^([^/]+)\.html$ ?c=archives&alias=$1 [L]
作者: 哈P哥    时间: 2013-2-27 18:51
楼下高手来解答下




欢迎光临 全球主机交流论坛 (https://sunk.eu.org/) Powered by Discuz! X3.4