Support » Fixing WordPress » Custom Error Pages?

  • Hi,

    Is there anyway in WordPress to create custom error pages like for your 404, 301, 500 error messages?

    Do I have to just create a page called 404.php or should I put in some code into my .htaccess file?

    Many thanks for any suggestions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    You can create a 404.php page in the theme folder and it will show for pages not found, but I’m not sure about 500 error pages.


    Thanks for the reply.

    OK, I tried the 404.php within the use Themes folder I’m using. `<?php get_header(); ?>

    <div id=”content” class=”narrowcolumn”>

    <h5>Error 404 – Not Found</h5>


    <?php get_sidebar(); ?>

    <?php get_footer(); ?>`

    However, it seems to just display my home page(with 1 or 2 wee mistakes) whenever I put in

    Could it be conflicting with my .htaccess file?


    When I go to my website it says Not Found or Error 404.
    My website hasn’t been up but a few weeks and it has only worked right for about 2 or 3 days the whole time.
    Is this caused by something that wasn’t done right or is it something on your end?
    If it is something that I have done, please let me know how to fix it.
    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Error Pages?’ is closed to new replies.