Mar
22
2006

Simplest mod_rewrite example ever

Great for front controllers - courtesy of Wordpress

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /frontcontroller.php?foo=$1 [L]

Written by Aaron Wormus in: Apache, Internet |

No Comments »

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes