Resolve 404 errors on .aem.live URLs after publishing in AEM

Adobe Experience Manager (AEM) pages may return 404 Not Found errors on .aem.live URLs when large assets prevent publication or page slugs contain capital letters that don’t resolve correctly. To resolve the issue, review asset sizes and page slugs, verify the page in preview, check path mappings if needed, and republish to the live environment.

Description description

Environment

  • Adobe Experience Manager (AEM), all versions
  • Edge Delivery Services

Issue/Symptoms

  • Published pages return 404 Not Found errors on .aem.live URLs.
  • Publication may appear to complete successfully.
  • No relevant errors appear in AEM logs when the issue occurs.
  • Large assets or page slug formatting may affect publication or URL resolution.

Root cause

Large assets, such as images over 20MB, can prevent successful publication to Edge Delivery Services. Page slugs containing capital letters may also fail to resolve correctly on public URLs because slugs must be lowercase for proper mapping and ingestion.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Review the affected pages for large assets, such as images over 20MB.
  2. Remove or replace assets that exceed the recommended size limits, and then republish the page.
  3. Ensure that page slugs, which are the last segment of the URL, use only lowercase letters and don’t contain capital letters. Rename the page slugs to lowercase if necessary, and then republish the pages.
  4. Access the page directly on the AEM Publish instance using the repository path, for example, https:///.html, and confirm that the page is available.
  5. Publish the page to the Edge Delivery preview environment and test the corresponding .aem.page URL, for example, https://.aem.page/.
  6. If the page appears in preview but not on .aem.live, verify that the project’s path mapping configuration, such as paths.json, contains the correct mappings for the site root and affected pages.
  7. After the page is available in preview, publish it to the live environment and retest the .aem.live URL to confirm that the page is accessible.
recommendation-more-help
experience-cloud-kcs-help-kbarticles