BASE_URL - GODADY - 系统codeigniter

时间:2016-07-04 07:37:14

标签: php .htaccess codeigniter hosting base-url

我需要一些帮助,我有自己的主机和子域名。我也有简单的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托管上工作?我对其他托管服务没有任何问题。

1 个答案:

答案 0 :(得分:0)

只需添加?在.htaccess文件中的index.php之后签名:

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

它会起作用!