简体   繁体   中英

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.
-i set base_url ='' in config.php
-i set default_controller = '' in route.php

  1. Set base_url with your website link
    $config['base_url'] = 'http://www.laundruae.con/';
  2. Add url in config/autoload.php
    $autoload['helper'] = array('url');
  3. Set your default controller in route.php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM