AEM 6.5 | 301 Redirects in page properties | Community
Skip to main content
jebarose_07
New Participant
Jun 30, 2022 3:00 PM UTC
Solved

AEM 6.5 | 301 Redirects in page properties

Hi all,

 

I would like to do 301 redirects as below

 

https://domainname.com/test to https://domainname.com/test/ 

https://domainname.com/test1 to https://domainname.com 

https://domainname.com/test1/ to https://domainname.com 

 

Is it possible to implement this on the site page properties under the 'redirects tab' in AEM 6.5? Or what is the best method to implement this?

 

 

Thanks,

Rose

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Aditya_Chabuku
Aditya_ChabukuAccepted solution
New Participant
Jun 30, 2022 7:29 PM UTC

Hi @jebarose_07 , Sling Redirects basically redirect internally, but it seems like you may need it in your Prod sites. For that, you need to rely on the dispatcher to rewrite rules and redirect pages. 

something similar to this.

RewriteRule ^/ /(.+)$ https://domainname.com/test1.html [L,R=301,NE]

 

Hope this helps,

~Aditya

Thanks,Aditya Chabuku

3 replies

Mohit_KBansal
Employee
Jul 1, 2022 4:32 AM UTC

@jebarose_07 Consider implementing such redirects on apache/dispatcher, to avoid unnecessary request processing on the publisher, until you want your business editors to control these redirects. In this case, go with Redirect Map Manager [1] approach.

 

[1] https://adobe-consulting-services.github.io/acs-aem-commons/features/redirect-map-manager/index.html

Translate
Aditya_Chabuku
Aditya_ChabukuAccepted solution
New Participant
Jun 30, 2022 7:29 PM UTC

Hi @jebarose_07 , Sling Redirects basically redirect internally, but it seems like you may need it in your Prod sites. For that, you need to rely on the dispatcher to rewrite rules and redirect pages. 

something similar to this.

RewriteRule ^/ /(.+)$ https://domainname.com/test1.html [L,R=301,NE]

 

Hope this helps,

~Aditya

Translate
Thanks,Aditya Chabuku
SantoshSai
New Participant
Jun 30, 2022 3:23 PM UTC

Hi @jebarose_07 ,

Please check this article for the similar purpose: https://medium.com/tech-learnings/adobe-experience-manager-aem-implementing-custom-redirect-vanity-urls-manager-857c699ccc29

You could also consider Redirect Map Manager

Hope that helps!

Regards,

Santosh

Translate
Santosh Sai