Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By theboy159 on
Under Site Information we can provide custom 404 and 403 pages to Drupal, but these need to be created inside Drupal, and non Drupal pages are rejected. (such as myerror/404.html).
Contrib modules like custom error and static 404 also work inside Drupal. Any ideas on how to set an external page as 404 or 403?
Comments
Help me plz
Help me plz
Modify you .htaccess
Try it by editing your .htaccess file by adding:
ErrorDocument 403 /noaccess.html
ErrorDocument 404 /notfound.html
And ofcourse create the page itself ;)
nope
Doesn't work.