Welcome! Log In Create A New Profile

Advanced

Re: Rewrite/redirect issue

James Read
May 06, 2021 12:06PM
On Thu, May 6, 2021 at 4:02 PM Sergey A. Osokin <osa@freebsd.org.ru> wrote:

> Hi Eric,
>
> hope you're doing well these days.
>
> On Thu, May 06, 2021 at 02:01:40PM +0000, Eric Speake wrote:
> > I am trying to redirect mydomain.com/summersummit to
> new.mydomain.com/events/employee-events/summersummit2021. Here is what I
> have in my config:
> >
> > location /summersummit {
> > return 301
> https://new.mydomain.com/events/employee-events/summersummit2021;
> > }
>
> This one should work.
>
> > I have also tried:
> > rewrite ^/summersummit/(.*)$
> https://new.dmp.com/events/employee-events/summersummit2021 permanent;
> > But the redirect doesn't work. It still goes to
> mydonain.com/summersummit.
>
> Could you explain a reason of this second one.
>

Is it anything to do with the typo?


>
> Thank you.
>
> --
> Sergey Osokin
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Rewrite/redirect issue

Eric Speake May 06, 2021 10:02AM

Re: Rewrite/redirect issue

Sergey A. Osokin May 06, 2021 11:04AM

Re: Rewrite/redirect issue

James Read May 06, 2021 12:06PM

RE: Rewrite/redirect issue

Eric Speake May 06, 2021 03:18PM

Re: Rewrite/redirect issue

Francis Daly May 07, 2021 09:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 160
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready