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.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx