0

我是codeigniter的新手。我最近开始研究一个在 codeigniter 中开发的项目。

我已经下载了该项目并在本地进行了处理,然后将更新上传到现场。

问题是当我在本地运行它以检查例如http://localhost/example/index.php/homehttp://localhost/example/它直接移动到实时网站 www.example.com/index.php /home 代替http://localhost/example,我还更改了 application/config/config.php 中的 base_url。

请帮助我。

4

1 回答 1

0

将其保存在.htaccess中

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
于 2012-04-16T09:29:45.607 回答