Hello,
I have a number of rewrite rules in .htaccess which I am trying to get working in NGINX.
Here is an example:
RewriteRule contact-us/$ /contact.php?seo_url=contact-us [L]
Here is what I have tried in NGINX
location /contact-us/ {
rewrite /contact-us/
http://www.mydomain.com/client.php?seo_url=contact-us last;
}
The rewrite kind of works but what I want is the URL in the address bar to still say http://www.mydomain.com/contact-us/ after the redirect.
Could anyone please point me in the right direction?
Thanks