php rewritrule



 RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

我的htaccess这样,怎么修改才能使某个目录下的文件不定性到index.php

php

Saki小祺 8 years, 8 months ago
  1. 例子 排除 images css js目录
    RewriteCond $1 !^(images|css|js)

lzcllyt answered 8 years, 8 months ago

RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

Aries answered 8 years, 8 months ago

Your Answer