我想知道我的页面离线和在线有什么不同?
在离线下载我的页面后,我需要在我的文件夹文件后添加(index.php)才能使其可见?
http://localhost/gsaconst/index.php/articles/news
我的在线页面会是
http://www.gsa-constructionspecialist.com/articles/news
如何删除脱机页面中的index.php,并使其仍然可见,而不是错误消息,如:
找不到对象!
在此服务器上找不到请求的URL。引用页面上的链接似乎是错误的或过时的。请将此错误通知该页面的作者。
发布于 2016-12-17 22:40:13
您需要在脱机目录中添加.htaccess文件
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]还要确保从配置文件中删除index.php
查找配置文件application/config/config.php的$config['index_page'] = 'index.php';
https://stackoverflow.com/questions/41199302
复制相似问题