CodeIgniter Forums

Full Version: Mod_Rewrite for code igniter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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

El Forum

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

El Forum

[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