I have a simple rule to take requests for html pages and pass them through a content management engine.
news.html will be requested by apache as index.php?page=news
RewriteRule ^(.*)\.html$ index.php?page=$1 [L]
I now need to get the following working
news.html?a=1&b=2 as index.php?page=news&a=1&b=2
(so that the site works a= and b= will vary from page to page so the a= and b= can't be hard coded within the rule)
Nothing I've done with this gets it to work.
eg these fail
RewriteRule ^(.*)\.html(.*)$ index.php?page=$1&$2 [L]