简体   繁体   中英

Codeigniter on IIS web.config issue

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.

检查托管服务器中是否安装了重写模块,这可能是您的问题。

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. IIS-URL重写

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM