Hey guys,
I am using the ACS Commons Redirect Map Manager(latest version) with AEM 6.5. However, I don't see any option to select the type of redirect such as 301 or 302 in the configuration page. We need to add the redirect type in the apache. How can we add the redirect type in the configuration page?
Thanks,
Prateek
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
There's no option in Redirect Map Manager to add the type of redirect. You can do that at Apache Level using Apache Rewrite Rules.
Ex:
RewriteRule ^(.*)$ ${map.legacy:$1|/} [L,R=301]
As per https://adobe-consulting-services.github.io/acs-aem-commons/features/redirect-map-manager/index.html, I see that Daniel has responded to your question.
Prateek, not directly in the Redirect Map Manger UI, but you can control this at the Apache level by how you configure the rewrite rule e.g.:
RewriteRule ^(.*)$ ${map.legacy:$1|/} [L,R=301]
vs
RewriteRule ^(.*)$ ${map.legacy:$1|/} [L,R=302]
To enable configuring both 301 and 302 redirects you could create two sets of redirect properties and configurations (each using a different property) and then configure each differently at the Apache level.
There's no option in Redirect Map Manager to add the type of redirect. You can do that at Apache Level using Apache Rewrite Rules.
Ex:
RewriteRule ^(.*)$ ${map.legacy:$1|/} [L,R=301]
As per https://adobe-consulting-services.github.io/acs-aem-commons/features/redirect-map-manager/index.html, I see that Daniel has responded to your question.
Prateek, not directly in the Redirect Map Manger UI, but you can control this at the Apache level by how you configure the rewrite rule e.g.:
RewriteRule ^(.*)$ ${map.legacy:$1|/} [L,R=301]
vs
RewriteRule ^(.*)$ ${map.legacy:$1|/} [L,R=302]
To enable configuring both 301 and 302 redirects you could create two sets of redirect properties and configurations (each using a different property) and then configure each differently at the Apache level.