How to get values from query string and pass it to new page using .htaccess file <p>currently I m using following code in my site in .htaccess file :</p> <pre><code>RewriteRule ^([^/\.]+).php?$ comman.php?cat=$1 [L] </code></pre> <p>This redirects user to comman.php page say, user requests</p> <p><a href="http://www.mysite.com/myfolder/page1.php" rel="nofollow">http://www.mysite.com/myfolder/page1.php</a></p> <p>will redirects to </p> <p><a href="http://www.mysite.com/myfolder/comman.php?cat=page1" rel="nofollow">http://www.mysite.com/myfolder/comman.php?cat=page1</a></p> <p>This works fine. My question is how can I achieve following</p> <p><a href="http://www.mysite.com/myfolder/page1.php?var1=123" rel="nofollow">http://www.mysite.com/myfolder/page1.php?var1=123</a></p> <p>to redirect</p> <p><a href="http://www.mysite.com/myfolder/comman.php?cat=page1&amp;param=123" rel="nofollow">http://www.mysite.com/myfolder/comman.php?cat=page1&amp;param=123</a></p> <p>i.e. whatever value passed to url using get method to add in my new url.</p> <p>Thanks in Advance.....</p>