问题
My .htaccess file : 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>
I have also gone into httpd.conf file and uncommented LoadModule rewrite_module modules/mod_rewrite.so
来源:https://stackoverflow.com/questions/14456576/codeigniter-website-not-working-on-wamp-but-its-work-in-the-server