ReWrite all pages apart from /admin/ ones

Using Apache’s .htaccess you can rewrite many things…

SetEnv HTTP_MOD_REWRITE On
RewriteEngine On
RewriteBase '/'
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* framework/main.php?url=%1&%{QUERY_STRING} [L]

Codemonkey of Node.js, Django, PHP and all things HTML5 Solving tech challenges, one bit at a time.

Posted in Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *

*