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

[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
#2

[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>
#3

[eluser]rochellecanale[/eluser]
what causing this problem?
#4

[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.




Theme © iAndrew 2016 - Forum software by © MyBB