I want to remove index.php from url in codeigniter . So in user guide, there is way to do it by editing .htaccess.But my host do not allow to edit it. Is there any way to do with codeigniter's code? Thanks.
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Follow this tutorial, it will work on your host. Tutorial here I use this all the time :) |
|||
|
Sorry, I'm afraid it's not possible. CodeIgniter (or browsers in general, for that matter) need an index file, by editing the .htaccess file you tell the browser not to show the 'index.php' part, but it's still there. Removing the index.php file itself is silly since your website won't work without it. |
|||
|
put the foolowing code in .htaccess
and put |
||||
|
I dont think there is a way to do it without editing the htaccess file. |
|||
|
rm index.php
:)
– nickb Jun 15 '12 at 14:12