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

prateekkumar

12-01-2020

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

ACS Commons ACS Commons Redirect Map Manager AEM 6.5 Apache Dispatcher

Accepted Solutions (1)

Accepted Solutions (1)

sunjot16

Employee

15-01-2020

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.

Answers (0)