CodeIgniter Forums
htaccess - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: htaccess (/showthread.php?tid=9392)



htaccess - El Forum - 06-24-2008

[eluser]cachobong[/eluser]
hello! i wanna remove the "index.php" on the URL..i tried the one said in the tutorial but it dsnt seem to work..what should i do? pls help!


htaccess - El Forum - 06-24-2008

[eluser]Zeeshan Rasool[/eluser]
Hi, Bro gud aftrnoon. check this code , save it with .htaccess. remove index.php from config.php

Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]


htaccess - El Forum - 06-24-2008

[eluser]Zeeshan Rasool[/eluser]
Hi, Bro gud aftrnoon. check this code , save it with .htaccess. remove index.php from config.php

Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]

hope you will find it


htaccess - El Forum - 06-24-2008

[eluser]cachobong[/eluser]
still dsnt work bro...anyway..where should i save the .htaccess file?


htaccess - El Forum - 06-24-2008

[eluser]cachobong[/eluser]
ahhh..it already works..i just changed value of AllowOverride in httpd.conf from "None" to "All"