Repeating URL - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Repeating URL (/showthread.php?tid=54136) |
Repeating URL - El Forum - 08-24-2012 [eluser]rochellecanale[/eluser] hey guys, i created the upload demo in and i found an error after i upload a picture the url of class upload redirect to itself and not the do_upload function i got this url: http://localhost/file_upload/index.php/upload/localhost/file_upload/upload/do_upload here's my configuration in config.php $config['base_url'] = 'localhost/file_upload/'; $config['index_page'] = ''; and to my routes $route['default_controller'] = "upload"; $route['404_override'] = ''; Quote:what should i do? to prevent repeating urls?please help me guys im new here thanks Repeating URL - El Forum - 08-24-2012 [eluser]rochellecanale[/eluser] ok i solves my own problem i just need to modify my config to this <i>$config['base_url'] = 'http://localhost/file_upload/'; $config['index_page'] = 'index.php';</i> Repeating URL - El Forum - 08-24-2012 [eluser]rochellecanale[/eluser] what causing this problem? Repeating URL - El Forum - 08-24-2012 [eluser]LuckyFella73[/eluser] Because your url version without "http://" is seen as a relative path which is added to the actual url when setting an anchor. |