CodeIgniter前端不起作用

时间:2015-05-17 14:14:06

标签: codeigniter url

我买了一个用CodeIgniter写的房地产cms,我把它上传到我的主机帐户,但当我尝试访问我的网址时,它没有显示前端部分。 我知道网址重写或类似的问题,如果有人可以帮助我,我会感激

顺便说一句,后端工作(immonador.esy.es/admin/index.php),但前端(immonador.esy.es/index.php)工作正常。这是我的.htaccess文件

<IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
    RewriteBase /
</IfModule>
<IfModule !mod_rewrite.c>

ErrorDocument 404 /index.php
</IfModule>
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

1 个答案:

答案 0 :(得分:0)

试试这个

&#13;
&#13;
<IfModule mod_rewrite.c>
  
    RewriteEngine on 
    Options +FollowSymLinks
  
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
    RewriteBase /
</IfModule>
<IfModule !mod_rewrite.c>

ErrorDocument 404 /index.php
</IfModule>
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
&#13;
&#13;
&#13;