WordPress.org

Ready to get started?Download WordPress

Forums

Can you make templates for other error pages? (3 posts)

  1. Doodlebee
    Member
    Posted 1 year ago #

    As long as I've been doing WordPress themes, I never thought about this. I know you can make a template file for an error 404 page (404.php), and prettify it in your WordPress theme - but can you do it for 500? 503? 400? 401?

    Someone just asked me this and I've never thought about it. Is it possible? Or does the 404.php file cover all of them? (or do you have to just use your server to add these other ones, and can't do it through WordPress?)

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Good question! I've never tried setting up any other error templates but, as far as I know, WP only handles 404s. What you might be able to do is create the other error pages through WP and then use .htaccess to point to these Pages.

  3. Doodlebee
    Member
    Posted 1 year ago #

    I'm thinking you could - like do the "server template" thing and use the wp-blog-header.php file to pull in everything, but I was just curious if you *could* do the others. Maybe query string or something? I dunno. The Page is a good thought, too.

    I think I found something new to play around with XD

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.