Forum Moderators: phranque
RewriteRule ^([0-9]+)-([0-9]+).html$ /test.php?id1=$1&id2=$2 [L]
Inside test.php
<?
echo "ID1=";
echo $_GET['id1'];
echo "<br>ID2=";
echo $_GET['id2'];
echo "<br>Name=";
echo $_GET['name'];
?>
Output of "/1-2.html?name=Tom":
ID1=1
ID2=2
Name=
Why it does not echo Name=Tom? How to fix this problem?
'qsappend¦QSA' (query string append)
This flag forces the rewriting engine to append a query string part in the substitution string to the existing one instead of replacing it. Use this when you want to add more data to the query string via a rewrite rule.