i have a url like this:
http://sub.mysite.com/?name=johndoe
that i want to turn into this:
http://sub.mysite.com/redirect.php?name=johndoe
i want the rule to only apply if the name starts with a letter and contains only letters/numbers
i have this:
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^name=([a-zA-Z][a-zA-Z0-9]+)$ redirect.php?name=$1 [NC,R]
but it's not kicking in.
any help greatly appreciated. read all the guides, but can't figure it.