.htacess rewrite url when using get values
I'm trying to turn http://www.starsqa.com/lala.php?fname=bob into
http://starsQA.com/lala/bob
<form action="lala.php" method="get">
Name: <input type="text" name="fname">
<input type="submit">
</form>
Welcome <?php echo $_GET["fname"]; ?>.<br>
I tried this on the .htaccess, but nothing happened
Redirect 302 /lala.php?fname=bob http://www.starsQA.com/lala/bob.php
Is this possible?
No comments:
Post a Comment