I am working on a custom 404 page NOT an internal Drupal one

I changed the .htaccess to reflect this


# Make Drupal handle any 404 errors.
ErrorDocument 404 /404.php

However drupal is not pulling up the new 404.php

Comments

cog.rusty’s picture

As long as you use Drupal's RewriteRules for clean URL support, any non-existent page will bring up Drupal, which will display its own internal 404 page if needed and will return a 404 error code.

This happens because all clean URLs (such as /admin or /node/15) are essentially non-existent pages. If you disable clean URLs and remove Drupal's RewriteRules then your 404 page should work.

netentropy’s picture

but this is the problem

you say

which will display its own internal 404 page if needed and will return a 404 error code.

but if the URL is not existent it default to the home page not a 404 error