Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

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

Avatar

Level 2

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

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.