MOD_REWRITE rule for specific page

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
thiscatis
Forum Contributor
Posts: 434
Joined: Thu Jul 20, 2006 11:00 am

MOD_REWRITE rule for specific page

Post by thiscatis »

This is my .htaccess file now:

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=$1
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?
Post Reply