404 errors for site content on the Preview tier
This article explains how to troubleshoot and resolve scenarios where site content returns a 404 error on the Preview tier in Adobe Experience Manager (AEM) as a Cloud Service, while the same content is accessible on the Publish tier.
Description description
Environment
- Adobe Experience Manager as a Cloud Service (all versions)
Symptoms
- Requests to the Preview tier URL return a 404 error for site content.
- The same content is accessible on the Publish tier URL.
- Authenticated users may be able to view the content on Preview, but unauthenticated requests receive a 404 error.
Cause
This issue can occur because of misconfigured ACLs that restrict read access for the intended user groups on the Preview tier, or due to content activation issues where the latest content state is not properly reflected on Preview.
Resolution resolution
To fix the 404 errors on the Preview tier, follow these steps:
-
Review Access Control Lists (ACLs):
- In AEM as a Cloud Service, navigate to the Permissions or User Administration console.
- Check the read permissions for the affected content paths.
- Ensure that the appropriate user groups have the necessary read access on the Preview tier.
-
Test with a new page:
- Create a test page under a different path.
- Activate (publish) the test page to the Preview tier.
- Verify that the test page loads successfully on the Preview tier.
-
Unpublish and reactivate content:
- Unpublish the affected pages from the Preview tier.
- Reactivate (publish) the homepage or affected content to the Preview tier.
- Check if the content now renders correctly on the Preview tier.
-
Verify anonymous access settings:
- Confirm that anonymous access restrictions are applied only to the Publish tier, unless Preview should also restrict anonymous access.
- Adjust permissions as needed to ensure Preview tier access aligns with your requirements.
-
After making the changes, access the affected URLs on the Preview tier as an authenticated or unauthenticated user, as appropriate, and confirm that the content is accessible.