[英]Codeigniter url redirects to online server. Iam unable to find where is issue
I have to modify a project . 我必须修改一个项目。 I get the code .
我得到了代码。 This application is developed in codeigniter.when i copy this project to localhost and hit the url : localhost/project This url redirect my website from local to www.laundruae.con I have made the following modifications in config, route and htaccess but issue remains same.
当我将此项目复制到localhost并单击url时,此应用程序是在codeigniter中开发的:localhost / project该URL将我的网站从本地重定向到www.laundruae.con。我在config,route和htaccess中进行了以下修改,但问题仍然存在相同。
-i set base_url ='' in config.php -i在config.php中设置base_url =''
-i set default_controller = '' in route.php -i在route.php中设置default_controller =''
base_url
with your website link base_url
$config['base_url'] = 'http://www.laundruae.con/';
url
in config/autoload.php
config/autoload.php
添加url
$autoload['helper'] = array('url');
route.php
route.php
设置默认控制器
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.