• I have just installed WordPress (1.5). Things went well and then I tried to change things so that by blog could be accessed direct from my domain name root with the files still being stored at /wordpress. I followed the instructions here: http://ww.wp.xz.cn/docs/installation/different-address/

    I changed the blog address under options and made the required changes to index.php. I had already set up wp-config.php so I didn’t change it. I haven’t done anything with mod_rewrite

    However when I type in the new blog address I set, I get:

    Warning: main(./wp-blog-header.php): failed to open stream: No such file or directory in /home/content/b/e/h/behindthespar/html/index.php on line 4

    Warning: main(./wp-blog-header.php): failed to open stream: No such file or directory in /home/content/b/e/h/behindthespar/html/index.php on line 4

    Fatal error: main(): Failed opening required './wp-blog-header.php' (include_path='.:/usr/local/lib/php') in /home/content/b/e/h/behindthespar/html/index.php on line 4

    My blog address is http://www.shallwesingasongforyou.co.uk. It was originally set as http://www.shallwesingasongforyou.co.uk/wordpress which is still there.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Edit the index.php file that you placed into your root directory so that the line that looked like:

    require('./wp-blog-header.php');

    now looks like:

    require('./wordpress/wp-blog-header.php');

    After that, things should work. Make sure that the file you are editing only has a few lines (I think it’s four or six?) in it. Otherwise, you may be editing the wrong file.

    Thread Starter stutefc

    (@stutefc)

    Cheers, I must have been making the changes to the wrong copy of the index file 🙂

    Thread Starter stutefc

    (@stutefc)

    Another problem however…

    When I try and edit the code of my index page (going to ‘Manage’ on the Dashboard and ‘Files’) it says ‘Browsing index.php’ and under that ‘Oops, no such file exists! Double check the name and try again, merci.’

    Everything else works fine though, posting-wise.

    I wouldn’t recommend editing it though the online editor. I acutally wouldn’t recommend editing any of your WordPress files in the onine editor anyway. It’s much easier, I think, to edit your files in a normal text editor offline. That way, you get a copy of the updated file on your computer and all of your files are synched in case you might need to update.

    And I don’t think that you can edit the proper index.php in the online editor. I suggest you open up the proper index.php in a normal text editor like Notepad.

    Thread Starter stutefc

    (@stutefc)

    What file do I edit? The index.php file in my root directory reads:

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

    And the index.php of the /wordpress directory is much the same.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Different directories’ is closed to new replies.