I’m using mod_rewrite to rewrite .html to .php.
RewriteRule ^([0-9a-zA-Z-_]+)\.html$ index.php?p=$1 [L]
But, I’m having issues when using a $_GET in the URL. It works fine if requested URL is in this format: index.php?a=f1
BUT, if it rewrites it to home.html?a=f1, NOTHING.
Assuming it’s just the browser stops reading after it hits the .html. Is there a way to make this work?
You need to add the
QSAflag:The reason is best explained in the documentation: