WordPress.org

Support

Support » How-To and Troubleshooting » error in 404.php file

error in 404.php file

  • I tried rewriting my 404 ‘file not found’ file & deleted some of the code accidentally. Could someone take a look at this & tell me what needs to be added back (just above the <h3> tag, I think):

    ~<?php get_header(); ?>

    <h2><?php _e(‘Not Found’); ?></h2>

    <?php _e(‘Sorry, but the page you requested cannot be found. If you came here using this link:

    ‘http://www.richardsilverstein.com/tikun_olam/2006/02/03/jyllen-postens-muhammed-cartoons/’

    try pasting this link into your browser’s address field:

    ‘http://www.richardsilverstein.com/tikun_olam/2006/02/03/jyllands-postens-muhammed-cartoons/’); ?>

    <h3><?php _e(‘Search’); ?></h3>

    <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>~

  • The topic ‘error in 404.php file’ is closed to new replies.
Skip to toolbar