Redirect url request to a new site is not working.

Sergey A. Osokin osa at freebsd.org.ru
Wed Apr 28 21:21:03 UTC 2021


Hi Eric,

hope you're doing well these days.

On Wed, Apr 28, 2021 at 07:52:48PM +0000, Eric Speake wrote:
> 
> I need to redirect https://mysite.com/meeting to https://new.mysite.com/events/meet/meeting

...

The following one should work:

    location ~ ^/meeting {
        return 301 https://new.mysite.com/events/meet$request_uri;
    }

-- 
Sergey Osokin


More information about the nginx mailing list