• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
getting index.php 2X in url

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

#2
[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');


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.