I would like to know how to redirect a url with parameters in .htaccess
. I have a URL that can receive several parameters and I want to redirect it to another page with these parameters.
The page is wp-login.php
, I have to redirect to the /login/
page. But I need to redirect all parameters, not just the page.
ex:
http://site.com/wp-login.php?para=ola
http://site.com/login?para=ola
http://site.com/wp-login.php
http://site.com/login
RewriteRule ^/wp-login.php$ /login [QSA,L]