Forum Moderators: phranque
Currently i have the following mod rewrite
RewriteRule ^site/(.*)$ /site?page=$1.php so if you go to /site/mrtg/mrtg it will rewrite to site?page=mrtg/mrtg.php and the file called site will output my design and also include the mrtg file in there
Now i need to include php variables in there as well so basically visiting /site/mrtg/mrtg?1=1 converts tp site?page=mrtg/mrtg.php&1=1
Is this possible?
Jim
You can use the QSA-Flag here. Take a look at the description of RewritRule flags in the mod_rewrite docs.
RewriteRule ^site/(.*)$ /site?page=$1.php [QSA,L]