CodeIgniter Forums
Remove Index.php - 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: Remove Index.php (/thread-52717.html)



Remove Index.php - El Forum - 06-23-2012

[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





Remove Index.php - El Forum - 06-23-2012

[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-nginx-rewrite-rules/