ACS Commons Redirect Map Manager: Not able to select the type of redirect(301/302)



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?




ACS Commons ACS Commons Redirect Map Manager AEM 6.5 Apache Dispatcher

Accepted Solutions (1)

Accepted Solutions (1)




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.


RewriteRule ^(.*)$ ${map.legacy:$1|/} [L,R=301]



As per, 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]


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.

Answers (0)