Welcome Guest, Not a member yet? Register   Sign In
Repeating URL

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:

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

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>

what causing this problem?

Because your url version without "http://" is seen as
a relative path which is added to the actual url when
setting an anchor.

Theme © iAndrew 2016 - Forum software by © MyBB