Codeigniter on IIS web.config issue

青春壹個敷衍的年華 提交于 2019-12-25 05:53:26

问题


I am installing a site made in PHP/CodeIgniter 2 on a hosting server which unfortunately has IIS running, which I have no experience in.

Nothing is working except the homepage, all other pages are returning 404 errors.

Adding index.php to the url returns 500 - Internal server error (I have the index page config set to '' in the config.php file)

I tried also creating a web.config file thinking the issue might be from the redirects, but adding a web.config file stops even the homepage from working, even if the web.config file added is completely empty.

Help really appreciated.


回答1:


Check if the hosting server has Re-write module installed in it, that could be your problem.




回答2:


Make sure you had installed URL Rewrite - http://www.iis.net/downloads/microsoft/url-rewrite

After you had installed the module you should able to see this icon (URL Rewrite) in your IIS Management.



来源:https://stackoverflow.com/questions/15030080/codeigniter-on-iis-web-config-issue

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