getting index.php 2X in url |
[eluser]Unknown[/eluser]
hi folks.. im just wondering how to get rid of this 2X url. say for example i follow the exact script from ci site, upload.php when i go to http://localhost/code/upload.php after submit, i get a 404 page and url becomes like this. http://localhost/code/upload/index.php/upload/do_upload how do i get rid of "/index.php/upload" ?? thanks.
[eluser]the real rlee[/eluser]
Looks like a path issue. I assume your doing something like: Code: <form action="/upload/do_upload/" > Instead use the form helper to make sure the link to your controller function is relative: Code: echo form_open('upload/do_upload'); |
Welcome Guest, Not a member yet? Register Sign In |