Issues with etc/map redirect

Avatar

Avatar

v1101

Avatar

v1101

v1101

05-01-2021

Hello Community - I need your suggestion related to etc/map redirect. I am trying to implement the below redirect

 

PS: We don't want to make any changes in Apache.

 

DNS: www.prepaid.test.com/prepaidcards/student.html -> www.prepaid.test.com/content/test/en/account/cardenrollment.html

 

Existing setup is CDN -> Dispatcher -> Publish Instance

 

I have the following entries but the redirect is not happening. I have also verified in /system/console/jcrresolver. I wanted to implement it as a 301 redirect. Are these entries correct?

Redirect2.png

 

Also I have another question. I have kept the domain name for sling:Mapping. is that something that we need to follow the exact name of the domain/website or we can have any name? Also do I need to specify the port no. in the node name or not? Please advise.

Redirect3.png

View Entire Topic

Avatar

Avatar

kunal23

MVP

Avatar

kunal23

MVP

kunal23
MVP

05-01-2021

 You can add a rewrite rule in Apache to do a 301 redirect. Why you are not using Apache/Web server for rewrite ?