Need a little help with rewrite rule. How do I redirect an url with query to another url with query? Example:
http://example.com/prject/test.php?key=1
redirect to
http://example.com/prject/test.php?id=1
Also
http://example.com/prject/file2.php?key=1
to
http://example.com/prject/file2.php?arg=1
.htaccess file is located in /project/ directory.
In your
/project/.htaccess
file, insert the following: