• I just upgraded to WP1.5 and I had a number of separate pages that used files similar to the header and footer, which I have switched over to. Now, however, I get a 404 error on any non-blog or page.
    Here is an example of the most basic attempt I made.

    <?php
    define(‘WP_USE_THEMES’, true);
    require(‘./blog/wp-blog-header.php’);
    ?>

    <?php get_header(); ?>

    <div id=”content”>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    Something is clearly wrong, but I don’t know what. This was happening with my previous header and footer so i transferred them to this new theme type header and footer in WP1.5 and I get the same result.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Try removing the second line in the code. I use WordPress functions like this in some of my non-WordPress pages, and I don’t include that second line.

    Thread Starter Bradley Jacobs

    (@crazyjaco)

    Removed that defined themes line. No difference.

    If I change anything about the third line I get an error saying it can’t find the function bloginfo() so that means the path and file is right, I think. But for whatever reason the blog-header is finding something and submitting a 404 error to the browser.

    Thread Starter Bradley Jacobs

    (@crazyjaco)

    bump

    Thread Starter Bradley Jacobs

    (@crazyjaco)

    Apparently, not only are my non-blog pages working now but my RSS isn’t working either. I didn’t even know until a friend told me.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘404 Error on new pages outside wordPress pages’ is closed to new replies.