Apache htaccess 重写如果文件存在!
时间:2014-11-19 11:01:04
收藏:0
阅读:247
如果文件 data/cache/index.html 存在,那么才重写。否则使用默认的MVC 重写!by default.fu@foxmail.com
RewriteEngine on RewriteCond %{DOCUMENT_ROOT}/data/cache/list_1.html -f RewriteRule ^game\/?$ data/cache/list_1.html [L]RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d #RewriteRule ^(.*)$ index.php/$1 [PT,QSA,L] RewriteRule ^(.*)$ index.php?/$1 [PT,QSA,L]
原文:http://blog.csdn.net/default7/article/details/41277251
评论(0)