Welcome! Log In Create A New Profile

Advanced

Re: Redirect url request to a new site is not working.

Sergey A. Osokin
April 28, 2021 05:22PM
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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Redirect url request to a new site is not working.

Eric Speake April 28, 2021 03:54PM

Re: Redirect url request to a new site is not working.

Sergey A. Osokin April 28, 2021 05:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 72
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready