Fallback page for unpublished market sites on 2nd level domains - need to redirect to domain.com by default | Community
Skip to main content
January 12, 2023
Solved

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

  • January 12, 2023
  • 1 reply
  • 571 views

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!

 

 

 

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 Nirmal_Jose

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

1 reply

Nirmal_Jose
Adobe Employee
Nirmal_JoseAdobe EmployeeAccepted solution
Adobe Employee
February 10, 2023

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