What is annoying is that the browser now shows the rewritten URL and not
the pretty URL. How can we ensure that the redirection happens only
internally?
What is annoying is that the browser now shows the rewritten URL and not the
pretty URL. How can we ensure that the redirection happens only internally?
If you’re rewriting from/to inside the same server{} stanza, you can
investigate using the “last” flag in the rewrite documentation: http://nginx.org/r/rewrite
I don’t know how you can achieve this across different server{}s (with
the obvious proviso that you can have more than one server_name in a
server{}).
What is annoying is that the browser now shows the rewritten URL and not
the pretty URL. How can we ensure that the redirection happens only
internally?