how does one go about accessing the 404.php file in themes? (3 posts)

  1. subspacer
    Posted 10 years ago #

    Alright, I've edited my .htaccess file to point toward my theme's 404.php file, but I get an error:

    Fatal error: Call to undefined function: get_header() in (url-edited-for-security-reasons)/404.php on line 1

    What do I need to do to set up the error page to actually handle wrong links?

  2. James Huff
    Volunteer Moderator
    Posted 10 years ago #

    Use this for your .htaccess line instead:

    ErrorDocument 404 /index.php?error=404

  3. subspacer
    Posted 10 years ago #

    Thanks alot, that worked. I feel pretty dumb :P

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.