2016-12-17 77 views
0

我在想我的离线页面和在线页面有什么不同?为什么离线下载我的网络文件后,我需要添加index.php?

离线下载我的页面之后,我需要在我的文件夹文件后添加(index.php)以使其可见?

http://localhost/gsaconst/index.php/articles/news

我的网络上的网页会

http://www.gsa-constructionspecialist.com/articles/news

如何删除的index.php在离线页面,仍然使它不可见类似错误消息:

对象不找到了!

在此服务器上找不到请求的URL。推荐页面上的链接似乎是错误或过时的。请通知该页面的作者关于错误。

回答

0

你需要添加.htaccess文件脱机目录

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

,并确保您从配置文件中删除的index.php
$config['index_page'] = 'index.php'; 查找配置文件的application/config/config.php文件

相关问题