CodeIgniter Forums

Full Version: Remove Index.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
hello,

i want to remove index.php from url like
http://yoursite.com/index.php/football >> to http://yoursite.com/football

i tryed to make .htaccess file with this code

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

but still i cant fix please help


El Forum

[eluser]Unknown[/eluser]
Hello, read documentation: http://codeigniter.com/wiki/mod_rewrite/ - This is MOD_Rewrite for Apache.
Here is a post about NGIX also: http://www.farinspace.com/codeigniter-ng...ite-rules/