Forum: NGINX Browser shows rewritten URL

Posted by Yash Ganthe (Guest)
on 2012-07-24 14:34
(Received via mailing list)
Hi,

I need to rewrite
http://mysite:81/magento_mysite/abc
to
http://mysite:81/magento_mysite/?store=abc

I am able to do this using the .conf file. However, the browser shows 
the
rewritten URL and not the original.
Apache's mod_rewrite ensures that the browser shows the original URL and
not the rewritten one.

Is there some parameter I should be passing to avoid showing the new 
URL?

Thanks,
Yash
Posted by locojohn (Guest)
on 2012-07-27 15:12
(Received via mailing list)
location = /magento_mysite/abc {
  return 301 /magento_mysite/?store=abc;
}

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,228933,229037#msg-229037
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.