Hello,
I am currently trying to convert my Apache RewriteRule to Nginx HttpRewriteModule.
Almost everything is working, except query strings :
My URL is :
http://www.mysite.com/slug/page.htm?lng=en
After rewriting, it must look like :
http://www.mysite.com/index.php?page=slug/page.htm&lng=en
But it actually looks like :
http://www.mysite.com/index.php?page=slug/page.html?lng=en
Here is my rewrite rule :
rewrite ^([a-z0-9/-]*[a-z0-9-])\.htm$ /index.php?page=$1.htm permanent;
Do you have any solution ?
Thank you for your help.