WordPress.org

Ready to get started?Download WordPress

Forums

WordPress in different directory from blog address (can't get it to work) (6 posts)

  1. rjohara
    Member
    Posted 8 years ago #

    I'm trying to put the WordPress files in a directory called http://mysite.com/wordpress/ and my blog address in http://mysite.com/news/ but I can't get it to work. I had WordPress working ok when I tested everything wholly within the /wordpress/ directory, but I'm not able to move it to the /news/ directory.

    I've followed the intruction for moving at:

    http://codex.wordpress.org/Moving_WordPress

    and I get the error:

    Warning: main(./wordpress/wp-blog-header.php): failed to open stream: No such file or directory in /usr/www/users/mysite/news/index.php on line 4

    Fatal error: main(): Failed opening required './wordpress/wp-blog-header.php' (include_path='.:/usr/local/lib/php') in /usr/www/users/mysite/news/index.php on line 4

    Obviously it isn't finding the needed files, but I don't know where to enter this information to fix the problem.

    I note that the instruction page in the Codex for moving WordPress (listed above) says that *three* pieces of information are needed, with #3 being the file system path to wp-blog-header.php, and yet the instructions right below those three pieces of information *don't mention item #3*. Is it missing, and should it be changed somewhere?

    Many thanks.

  2. moshu
    Member
    Posted 8 years ago #

    Based on your description this
    ./wordpress/wp-blog-header.php
    should be
    ../wordpress/wp-blog-header.php

  3. rjohara
    Member
    Posted 8 years ago #

    Excellent! Thank you - works great. It looks like that's an error in the Codex instructions for moving.

  4. moshu
    Member
    Posted 8 years ago #

    No. The Codex is fine. However it wouldn't hurt if your learn something about how to set up a relative path :)
    Glad it works for you, welcome to WP!

  5. rjohara
    Member
    Posted 8 years ago #

    Even better would be for the unix geeks of the world to learn to communicate clearly; but then "unix geek" and "clear" are contradictory.

  6. moshu
    Member
    Posted 8 years ago #

    I have no idea what unix is :)
    But I have learned BASIC html:
    ./directory <== goes "down"
    and
    ../directory <== goes "up"

Topic Closed

This topic has been closed to new replies.

About this Topic