CodeIgniter: website not working on WAMP but it's work in the server?

那年仲夏 提交于 2019-12-13 03:06:17

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!