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.
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.
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.
Hi,
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>
</div>
<?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?
Anyone?
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
This topic has been closed to new replies.