Redirect only home page
location = / {
return 301 http://www.test.com/fedex-orders/;
}
The use of =
in location
= /
specifies that the URL must match /
exactly, with nothing else preceding or following it.
location = / {
return 301 http://www.test.com/fedex-orders/;
}
The use of =
in location
= /
specifies that the URL must match /
exactly, with nothing else preceding or following it.