Repeating URL |
[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/u.../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
[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>
[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. |
Welcome Guest, Not a member yet? Register Sign In |