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

301 Redirects Validation automated way

Avatar

Community Advisor

Hi Team,

 

Is there any way to automate 301 redirects validation? For eg: We have migrated old website(non-aem) to new(AEM). We have written 301 redirects at Dispacther layer. Right now we are checking manually. Does AEM provides any other way to validate all rules automatically?

 

TIA

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

What do you want to validiate? That these rules are configured correctly (as in: No typos)? In that it is a one-time check and you can probably generate a test script from the ruleset.

 

Another usecase could be that you want to avoid any 404s, e.g. because an author renamed a page which was initially there when these dispatcher rules have been created. In this case you could also generate a script based on the ruleset and let it warn if it encounters a 404 instead of the expected 301.

View solution in original post

5 Replies

Avatar

Community Advisor

Hi,

Since redirect is happening from dispatcher/apache , AEM can't help here.

You can test this using JMeter, where you can configure all the urls and do a test.

 

If you are looking for validation/test of rules, you can check here as well.

https://technicalseo.com/tools/htaccess/ 

 



Arun Patidar

Avatar

Community Advisor

Thanks @arunpatidar i was looking for any tool if aem provides. We can use jmeter but configuring urls we need to do at our end but yeah thats fine.

So custom solution would be needed for the same only

Avatar

Employee Advisor

hi @HeenaMadan,

 

A convenient test script to ensure that the 301s have been properly configured is available at  https://github.com/Adobe-Marketing-Cloud/tools/tree/master/dispatcher/redirectTester

See also the following Community pages: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/provide-301-redirect-in-ae...

 

Hope this helps.

 

Thanks,

Nikita Garg

Avatar

Community Advisor

Hi @HeenaMadan 

 

I have used screamingfrog tool in past to detect automatically the page redirects. It will show the status code (whether a 301, 302, 303 etc), the status (permanent or temporary) as well.

It's free in lite form, for up to 500 URLs. You have two options to check redirects:-

 

1. Crawl the Website

2. Upload a list of URLs to check the redirects.

 

https://www.screamingfrog.co.uk/redirect-checker/ 

 

Hope this helps.

Avatar

Correct answer by
Employee Advisor

What do you want to validiate? That these rules are configured correctly (as in: No typos)? In that it is a one-time check and you can probably generate a test script from the ruleset.

 

Another usecase could be that you want to avoid any 404s, e.g. because an author renamed a page which was initially there when these dispatcher rules have been created. In this case you could also generate a script based on the ruleset and let it warn if it encounters a 404 instead of the expected 301.