<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 6, 2021 at 4:02 PM Sergey A. Osokin <<a href="mailto:osa@freebsd.org.ru">osa@freebsd.org.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Eric,<br>
<br>
hope you're doing well these days.<br>
<br>
On Thu, May 06, 2021 at 02:01:40PM +0000, Eric Speake wrote:<br>
> I am trying to redirect <a href="http://mydomain.com/summersummit" rel="noreferrer" target="_blank">mydomain.com/summersummit</a> to <a href="http://new.mydomain.com/events/employee-events/summersummit2021" rel="noreferrer" target="_blank">new.mydomain.com/events/employee-events/summersummit2021</a>. Here is what I have in my config:<br>
> <br>
>    location  /summersummit {<br>
>    return 301 <a href="https://new.mydomain.com/events/employee-events/summersummit2021" rel="noreferrer" target="_blank">https://new.mydomain.com/events/employee-events/summersummit2021</a>;<br>
>    }<br>
<br>
This one should work.<br>
<br>
> I have also tried:<br>
> rewrite ^/summersummit/(.*)$ <a href="https://new.dmp.com/events/employee-events/summersummit2021" rel="noreferrer" target="_blank">https://new.dmp.com/events/employee-events/summersummit2021</a> permanent;<br>
> But the redirect doesn't work. It still goes to <a href="http://mydonain.com/summersummit" rel="noreferrer" target="_blank">mydonain.com/summersummit</a>.<br>
<br>
Could you explain a reason of this second one.<br></blockquote><div><br></div><div>Is it anything to do with the typo?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Thank you.<br>
<br>
-- <br>
Sergey Osokin<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div></div>