Forum Moderators: phranque
I want to rewrite mysite.com/example.php?page=1 to stuff.php?parent_id=50&page=1
What I have right now is:
RewriteRule example.php(\?*)(.*) stuff.php?parent_id=50&$1
and this works fine for mysite.com/example.php to stuff.php?parent_id=50 but does not work with the page parameter.
Therefore, you must check the query string separately:
RewriteCond %{HTTP_QUERY_STRING} ^(page=[^&]+)$
RewriteRule ^example\.php$ /stuff.php?parent_id=50&%1 [L]
Jim