• I installed wordpress, put together a template successfully imported about half of my posts from blogger (another problem for another day) using the blogger import routine. My last step to launch the new wordpress version of my blog was going to be following the instructions for putting my blog index.php file into my root directory so that readers could find it where the old blog was. When I hit this instruction:

    Now open up index.php and change the line that says require(‘./wp-blog-header.php’); to be require(‘./wordpress/wp-blog-header.php’);

    I had a problem. There was no line in my index.php file that resembled that. I tried replacing line 4 “get header” with this line and got a version of my blog with no style sheet or right column or left column (these are separate files). Thinking that maybe these instructions were based on the earlier themeless version of wordpress, I tried changing the addess to go to the theme folder to make sure it was accessing the right header file. I got more error messages.

    My theme, OH2 is based on Mike Little’s Journalized Sand. You can see what I’ve done at https://www.ourhouseblog.com/wordpress/

    If I can’t get this fixed, I’ll have to put in a redirect cgi script or something that moves people from the main address to this folder. Clunky and I’d rather not.

Viewing 1 replies (of 1 total)
  • If you look at your blog files, you have an ‘index.php’ in the WordPress directory. This index file is in the same place as the file wp-rss2.php

    That’s the one you alter and move.
    If you open it, it has this:
    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

    So you would change that last line.

    Try it and let us know ?

Viewing 1 replies (of 1 total)
  • The topic ‘problem getting blog and files in different directories’ is closed to new replies.