#排除图片、视频、css、js 等文件
#测试成功!下面内容写在.htaccess文件里
RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 32
Rewriteba
# unsupported directive: [ISAPI_Rewrite]
# 3600 = 1 hour
# unsupported directive: CacheClockRate 3600
RewriteRule .*\.(?:gif|jpg|png|css|js|txt|jpeg|swf|flv) $0 [I,L]
RewriteRule ^/httpd(?:\.ini|\.parse\.errors).*$ / [NC,F,O]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(?!/index.php)(?!/Public)(?!/Uploads)(?!/robots.txt)(.*)$ /index\.php\?s=$1 [NC]
#折腾了一早上,希望对大家有帮助。
最佳答案