AEM Dispatcher 301 Redirects Issue | Community
Skip to main content
Siva_Sogalapalli
Community Advisor
Community Advisor
March 9, 2020
Solved

AEM Dispatcher 301 Redirects Issue

  • March 9, 2020
  • 1 reply
  • 3490 views

Hi All,

 

We are using ACS commons redirects for 301 redirects and below are the rewrite rules we have added in dispatcher.

#Handle 301 Redirects
RewriteMap map.legacy /tmp/redirects.map
RewriteCond ${map.legacy:$1} !=""
RewriteRule ^(.*)$ ${map.legacy:$1|/} [L,R=301]

 

we have different version of Apache dispatchers and below are the details:

 

Server 1 : 

UNIX - Red Hat Enterprise Linux Server release 6.8 (Santiago)

Apache  - Server version: Apache/2.2.15 (Unix)

Dispatcher  - dispatcher-4.2.3.so

Port : 80

 

Server 2:

UNIX  - Red Hat Enterprise Linux Server release 7.4 (Maipo)

Apache -  Server version: Apache/2.4.6 (Red Hat Enterprise Linux)

Dispatcher - dispatcher-apache2.4-4.1.11.so

port : 8443 (https)

 

Issue: 301 redirects are working on server 1 but not on server 2.

 

Could you please advise if we have to make any extra changes on server 2 for 301 redirects.

 

Thanks In advance

Siva

 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by BrianKasingli

Hi,

Can you check the logs in your apache web server? Did you setup /etc/cron.hourly, like server one? Can server 2 access the PUBLISHER_IP? Did the cron job work as expected? Can you find the file.map, /etc/httpd/conf/tmp-${MAP_FILE}.map, with the correct text in this file? 
I'm pulling in documentation from https://adobe-consulting-services.github.io/acs-aem-commons/features/redirect-map-manager/index.html

1 reply

BrianKasingli
Community Advisor and Adobe Champion
BrianKasingliCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
March 9, 2020

Hi,

Can you check the logs in your apache web server? Did you setup /etc/cron.hourly, like server one? Can server 2 access the PUBLISHER_IP? Did the cron job work as expected? Can you find the file.map, /etc/httpd/conf/tmp-${MAP_FILE}.map, with the correct text in this file? 
I'm pulling in documentation from https://adobe-consulting-services.github.io/acs-aem-commons/features/redirect-map-manager/index.html

Siva_Sogalapalli
Community Advisor
Community Advisor
March 10, 2020
Yes, i'm putting the map file directly on dispatcher location itself and map is present. so that it will not connect to publisher.