I want to rewrite a url to static query as:
xxx.com/register => xxx.com/login.php?page=register
I'm using this:
RewriteRule ^register login.php?page=register [NC,L]
Use it like this:
RewriteEngine On RewriteRule ^(register)/?$ /login.php?page=$1 [NC,L,QSA]
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the privacy policy and terms of service.
tagged
asked
today
viewed
17 times
active