> This way you'll end up with two 301 redirects due to rewrite being
> executed again for /foo/bar/301.html.
Ah right, makes sense.
> Try this instead:
>
> server {
> listen 80 default;
>
> location / {
> error_page 301 /foo/bar/301.html;
> return 301 "https://example.com$request_uri";
> }
>
> location = /foo/bar/301.html {
> # static
> }
> }
Great, that worked, thanks.
Rob
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx