IIS web.config问题上的Codeigniter [英] Codeigniter on IIS web.config issue

查看:85
本文介绍了IIS web.config问题上的Codeigniter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将PHP / CodeIgniter 2制成的站点安装在运行IIS的托管服务器上,但我没有任何经验。

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.

除了没有其他操作主页,其他所有页面均返回404错误。

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

将index.php添加到url返回500-内部服务器错误(我将索引页面配置设置为在config.php文件中)

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

我也尝试创建了一个web.config文件,认为问题可能出在重定向中,但是添加web.config文件甚至可以停止主页,即使添加的web.config文件完全为空。

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.

非常感谢帮助。

推荐答案

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

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

这篇关于IIS web.config问题上的Codeigniter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆