EllisLab text mark
Advanced Search
     
index.php removal issues
Posted: 13 October 2012 03:00 PM   [ Ignore ]
Avatar
Joined: 2012-04-11
21 posts

I found this previous forum post:
http://ellislab.com/forums/viewthread/155801/

I followed instructions within it and created .htaccess file:

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?

 
Posted: 13 October 2012 03:35 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2011-10-12
102 posts

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

 Signature 

SMC - full CRUD Model for CodeIgniter:
forum: http://codeigniter.com/forums/viewthread/223845/

 
Posted: 13 October 2012 04:25 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2012-04-11
21 posts

Thank you!

 
Posted: 13 October 2012 10:10 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Joined: 2012-09-10
1 posts

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