View Single Post
Old 11-15-2008, 04:47 PM   #4 (permalink)
ETbyrne
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

@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]
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
The Following User Says Thank You to ETbyrne For This Useful Post:
codefreek (11-16-2008)