我的.htaccess文件: DirectoryIndex index.php
RewriteEngine On
Redirect 301 /index.html c:/wamp/www/inwanature/public_html/
RewriteCond $1 !^(index\.php|static|news|robots\.txt|favicon\.ico|sitemap\.txt|googledac098cbb1b6b9ff\.html)
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
# Brower Caching
# 480 weeks
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=290304000, public"
</FilesMatch>
# 2 DAYS
<FilesMatch "\.(xml|txt)$">
Header set Cache-Control "max-age=172800, public, must-revalidate"
</FilesMatch>
# 2 HOURS
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>
我也进入了httpd.conf文件并取消注释了LoadModule rewrite_module modules / mod_rewrite.so