MOD_REWRITE rule for specific page
Posted: Thu Aug 09, 2007 3:15 pm
This is my .htaccess file now:
So it redirects everything after / to redirect.php?link=whatever
But there are still real pages there so I want /register/ actually going to register.php
How can I add these specific pages to the htaccess file so they don't get redirected using the current rewrite rule?
Code: Select all
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [L,R=301]
RewriteCond %{REQUEST_URI} !^/images/.*
RewriteRule ^([A-Za-z0-9]+)$ /$1/ [R]
RewriteRule ^([A-Za-z0-9]+)/$ /redirect.php?link=$1But there are still real pages there so I want /register/ actually going to register.php
How can I add these specific pages to the htaccess file so they don't get redirected using the current rewrite rule?