CodeIgniter Forums
index.php removal issues - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: index.php removal issues (/thread-55184.html)



index.php removal issues - El Forum - 10-13-2012

[eluser]echo_boom[/eluser]
I found this previous forum post:
http://ellislab.com/forums/viewthread/155801/

I followed instructions within it and created .htaccess file:

Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]

The problem:
I have to MANUALLY remove the ‘index.php’ for the URL to look clean. When I just go to the root directory OR click on a link within the app----when CI figures out the URL by itself the index.php is still there.

How do I get index.php to be gone completely?


index.php removal issues - El Forum - 10-13-2012

[eluser]alexwenzel[/eluser]
Look in your config.php file. There is a line where you can remove index.php file by empty the config array string.


index.php removal issues - El Forum - 10-13-2012

[eluser]echo_boom[/eluser]
Thank you!


index.php removal issues - El Forum - 10-13-2012

[eluser]Unknown[/eluser]
You should use .htaccess for CI 2.0

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME| !-d
RewriteRule ^(.*)$ /index.php/$1 [L]








device massage