Expand my Community achievements bar.

SOLVED

Fallback page for unpublished market sites on 2nd level domains - need to redirect to domain.com by default

Avatar

Level 1

Hello,

 

author has unpublished the market site (2nd level domain domain.com/xx/xx/ ) and forgot to add redirect to domain.com.

 

Current error message:

Resource at '/content/www/xx/xx' not found: No resource found
Cannot serve request to /content/www/xx/xx on this server
ApacheSling/2.7 (jetty/9.4.12.v20180830, Java HotSpot(TM) 64-Bit Server VM 1.8.0_151, Linux 3.10.0-1160.80.1.el7.x86_64 amd64)

 

 

Is it possible to redirect all no longer existing pages to domain.com 404 page by default? 

 

// seems like typos on 2nd level domain ( domain.com/*/*  ) goes to 404 page under domain.com

under domain.com/au/*typo  goes to market site 404 page.

 

We would like the same logic even for the unpublished pages

 

thank you!

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

 

I recommend creating as below.

 

1. Create site level error pages (named same, but all under different routes)

2. configure your webserver to have the error document configured per route.

 

Its very well explained at [1]

 

[1] - https://www.albinsblog.com/2020/01/efficient-error-handing-in-aem-adobe-experience-manager.html

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Hi,

 

I recommend creating as below.

 

1. Create site level error pages (named same, but all under different routes)

2. configure your webserver to have the error document configured per route.

 

Its very well explained at [1]

 

[1] - https://www.albinsblog.com/2020/01/efficient-error-handing-in-aem-adobe-experience-manager.html