Rewrite/redirect issue

Eric Speake ESpeake at dmp.com
Thu May 6 14:01:40 UTC 2021


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;
   }

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.



Thanks for the help.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20210506/ee03f1f7/attachment.htm>


More information about the nginx mailing list