Forums

[resolved] 404.php doesn't seem to work for me. (2 posts)

  1. magicalwonders
    Member
    Posted 2 years ago #

    Hi Folks,

    I have a 404.php file included in a theme I'm building, but it doesn't seem to be working for some reason.

    My code for this file is very basic as follows:

    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    
    	<div id="mainContent" class="column">
    
    		<h2 class="center">Error 404 - Not Found</h2>
               </div>
    
    <?php get_footer(); ?>

    My url for the theme is http://really-valid-info.com/blog/
    I've tried browsing to a non existent page such as http://really-valid-info.com/blog/?page_id=25 This produces a page, but without any text or message!

    The same thing happens when I switch to using the default theme - so not sure how to get this to work!

    Any advice would be appreciated.

    Many thanks,

    Myles

  2. magicalwonders
    Member
    Posted 2 years ago #

    I've got this working now. There was no .htaccess file in the WordPress folder and pretty permalinks were not being used.

Topic Closed

This topic has been closed to new replies.

About this Topic