CodeIgniter Forums
Mod_Rewrite for code igniter - 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: Mod_Rewrite for code igniter (/thread-10446.html)



Mod_Rewrite for code igniter - El Forum - 07-31-2008

[eluser]ummarbhutta[/eluser]
Hi, I have developed a new website in codeigniter.. but I don't want the index.php in every URL request.. Please can any one tell me that how can I remove that.. I think with Mod_Rewrite in .htaccess file.. but i don't know what to write there?? I am hosting my website on hostmonster.com (Apache Server).. Please help me out as soon as possible.

Ummar


Mod_Rewrite for code igniter - El Forum - 07-31-2008

[eluser]wiredesignz[/eluser]
Search the forums for .htaccess, this subject has been discussed $many++ times before.


Mod_Rewrite for code igniter - El Forum - 07-31-2008

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

for more search forum + wiki