【发布时间】:2015-08-11 19:09:16
【问题描述】:
我的.htaccess 文件中有这个
<IfModule mod_rewrite.c>
Options +FollowSymLinks
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.+$ /index.php [L]
</IfModule>
我的网站在index.php 中显示了我所有网络文件的文件。我试图摆脱必须输入mysite/index.php/filename 并直接转到mysite/filename
我的网址是http://local-news.today/subscribe。当我使用这个地址local-news.today/index.php/subscribe 时它可以工作,它显示了订阅功能上的内容。
我的网站托管在 godaddy。我也在使用codeigniter。任何帮助将不胜感激。
【问题讨论】:
-
确保
$config['index_page'] = ''在config.php中。 -
是的,我的已经设置好了。
标签: php .htaccess codeigniter mod-rewrite