I am redirecting /example.php?var=value
to /index.htm
like this:
rewrite /example.php?var=value / permanent;
However, the browser ins printing the final uri like this:
domain.com/?var=value
How can I have a clean uri like this?
domain.com
Thanks.
Excerpt from nginx rewrite module documentation:
Put a question mask at the end of replacement:
The simpliest way I found is this:
rewrite ^/example.php /? permanent;
Thanks for all.