Rewrite/redirect issue

Eric Speake ESpeake at dmp.com
Thu May 6 19:15:55 UTC 2021


Looking at the logs I see this:

192.168.250.30 - - [06/May/2021:13:27:27 -0500] "GET /summersummit HTTP/1.1" 301 185 "-"

While seeing the 301 it's not redirecting anywhere.


Thanks,

From: nginx <nginx-bounces at nginx.org> On Behalf Of Eric Speake
Sent: Thursday, May 6, 2021 9:02 AM
To: nginx at nginx.org
Subject: Rewrite/redirect issue

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 { &nbs
Caution! Message was sent from outside DMP. Please, use proper judgment when opening attachments, clicking links, or replying.

Block sender<https://mail-cloudstation-us-east-2.prod.hydra.sophos.com/mail/api/xgemail/smart-banner/9057e05aacad5dc31f5ede40db1afde6>

sophospsmartbannerend
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<https://us-east-2.protection.sophos.com?d=mydomain.com&u=aHR0cHM6Ly9uZXcubXlkb21haW4uY29tL2V2ZW50cy9lbXBsb3llZS1ldmVudHMvc3VtbWVyc3VtbWl0MjAyMQ==&i=NWNkOWM0YTBkZDU1ZmUxMGY5NzkyOTQy&t=MnJ1R01yNzRJbFF1emdkS2dDNFV5dTZwSFpjbisrdDN3RG1LRVgwbUc2MD0=&h=7b6ed5dd705a4bdd93869b1a3806857e>;
   }

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/f4182aa4/attachment.htm>


More information about the nginx mailing list