首页 文章

在localhost上使用Codeigniter

提问于
浏览
0

我是codeigniter的新手 . 我最近开始研究一个用codeigniter开发的项目 .

我已下载该项目并在本地进行处理,然后将更新上传到实时 .

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

请帮助我

1 回答

  • 0

    将此保存在 .htaccess

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .* index.php/$0 [PT,L]
    

相关问题