Custom Error Pages? (5 posts)

  1. sincewelastspoke
    Posted 8 years ago #


    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.

  2. kulpreetsingh
    Posted 8 years ago #


    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.

  3. sincewelastspoke
    Posted 8 years ago #


    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 mydomain.com/gldfdfdfsfkslfk.

    Could it be conflicting with my .htaccess file?

  4. sincewelastspoke
    Posted 8 years ago #


  5. debilowe55
    Posted 7 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.