11-15-2008, 04:47 PM
|
#4 (permalink)
|
|
how quixotic are you?
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
|
@Enfernikus: Yes. You are definitely right, Mod_Rewrite is much more powerful than this method. But, the two methods could easily be used together to be more powerful that ether one alone! Again, a good example of this would be how CodeIgniter handles URLs.
You could use the following Mod_Rewrite code in a .htaccess file to remove the index.php:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|img|robots\.txt|anotherdir)
RewriteRule ^(.*)$ index.php/$1 [L]
|
|
|
|