WordPress.org

Ready to get started?Download WordPress

Forums

Having problems modifying my 404.php (Error file) (1 post)

  1. benisjamin
    Member
    Posted 2 years ago #

    Hi all,

    Im trying to make my 404.php look slightly prettier and also use a re-direct back to my blog, only problem is I cannot get any new content Im putting into the 404.php file to show up on screen....?

    The site/blog is not currently live as Im testing everything locally on my WAMP server Ive installed.I dont know if this is the cause, it shouldnt be... ?

    PLEASE NOTE! I have placed a standard <p> tag in to test the 404 error page to see if the new content is shown but I just keep getting the default 404 message, its not even producing my header/sidebar/footer just literally a blank white canvas with "Not Found" in bold lettering followed underneath by "The requested URL /wordpress/dgdghdgdg was not found on this server."

    The code for my 404.php file :

    <?php @header("HTTP/1.1 404 Not found", TRUE, 404); ?>
    <?php get_header() ?>
    	<div id="container">
    
    		<div id="content">
    	<p>This is some random text to test the page</p>
    			<div id="post-0" class="post error404">
    
    			<?php thematic_404() ?>
    
    			</div><!-- .post -->
    
    		</div><!-- #content -->
    	</div><!-- #container -->
    
    <?php thematic_sidebar() ?>
    <?php get_footer() ?>

Topic Closed

This topic has been closed to new replies.

About this Topic