WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. subspacer
    Member
    Posted 9 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. Use this for your .htaccess line instead:

    ErrorDocument 404 /index.php?error=404

  3. subspacer
    Member
    Posted 9 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.