How to get nginx to redirect to another path only if the root path is requested?
Francis Daly
francis at daoine.org
Sat Jan 27 13:25:25 UTC 2018
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 at daoine.org
More information about the nginx
mailing list