2.14.4.9. Configure 404 page in MODX

Attention!

Custom 404 pages will not work correctly for URLs that mention pagespeed if optimization settings are enabled. To resolve the issue, disable optimization settings or avoid using links with similar keywords.

In MODX, 404 error page is generated directly in CMS itself, which is why the instruction for configuring your own 404 page will not produce the desired result.

  1. Create a new resource and specify data:
    1. Click "New resource".
    2. "Title" — specify the page title.
    3. Select "Hide from menu" and "Published".
    4. "Content" — specify text that must be displayed on page 404 (for example, "Unfortunately, the page you requested was not found. You have probably entered a non-existent address, page has been deleted, moved, or it is temporarily unavailable now!").
    5. Remember ID of the created page (ID is indicated in parentheses).
    6. Save page.
  2. Go to "Settings → System settings":
  3. Configure page that will be displayed as a 404 error:
    1. In "Search by key" field, specify error_page or find this parameter in settings.
    2. Double-click the value opposite the found parameter and specify ID of the page that was created (settings are saved automatically).
    3. Check the correctness of 404 page display.
Content