【发布时间】:2016-11-05 20:39:13
【问题描述】:
我需要一些帮助,我有很好的托管和子域。我还有一个简单的 HTML 网站,它包含在 codeigniter 系统中。问题是主页可以正常工作(http://new.bendcare.com),但所有子页面都不能正常工作,我得到错误:
No input file specified.
我的基本网址:
$config['base_url'] = 'http://new.bendcare.com';
我当前的 .htaccess 是:
<IfModule authz_core_module>
Require all denied
</IfModule>
<IfModule !authz_core_module>
Deny from all
</IfModule>
# Mod Rewrite
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
我发现我应该在 godady 主机上添加#Mod Rewrite 才能正常工作,但在我的情况下不是这样。
我应该改变什么才能让 codigniter 在 godady 主机上工作?我在其他主机上没有问题。
【问题讨论】:
-
您将 .htaccess 放在哪里,它应该在应用程序文件夹之外。不要触摸应用程序文件夹中的 .htaccess。
标签: php .htaccess codeigniter hosting base-url