On Fri, Jan 26, 2018 at 02:24:16PM -0500, leeand00 wrote:
Hi there,
> How to get nginx to redirect to another path only if the root path is
> requested?
I don't understand the rest of your mail; perhaps if you could show one
request that you make and the response that you get, and how it is not
the same as the response that you want, that would be clearer.
But this first question, I do understand.
location = / { return 301 /rootWiki/; }
should do what you want.
Good luck with it,
f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx