Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Moving a directory from a subdirectory to a root directory.

  1. #1
    Xarzu's Avatar
    Xarzu is offline Hello World
    Join Date
    Oct 2009
    Posts
    68

    Default Moving a directory from a subdirectory to a root directory.

    I kind of remember seeing somewhere the steps involved in moving an extablished Blog from a subdirectory down to a root directory. What are the steps involved in doing this?

  2. #2
    chipbennett's Avatar
    chipbennett is offline WordPress Legend
    Join Date
    Feb 2009
    Location
    St. Louis, MO
    Posts
    1,992

    Default

    Quote Originally Posted by Xarzu View Post
    I kind of remember seeing somewhere the steps involved in moving an extablished Blog from a subdirectory down to a root directory. What are the steps involved in doing this?
    Have you tried searching the Codex? You should always do that first.

    Here, LMGTFY. These two Codex articles should help you:

    Giving WordPress Its Own Directory
    Moving WordPress
    WP TurnKey - Turn-Key WordPress installation and maintenance services
    WordPress user since 2005 | @chip_bennett | chipbennett.net | cbnet Plugins

  3. #3
    Ryan's Avatar
    Ryan is offline WordPress Legend
    Join Date
    Jan 2009
    Location
    New Zealand
    Posts
    2,797

    Default

    Xarzu, I think you need to start searching before asking questions here. Many of your recent questions here have been very basic and could have been answered within seconds via a simple Google search.

    For example:
    http://www.google.co.nz/search?aq=f&...dpress+to+root

    The first thing that showed up in that search for "move wordpress root" was the following article which answers your question:
    http://codex.wordpress.org/Giving_Wo..._Own_Directory

  4. #4
    Xarzu's Avatar
    Xarzu is offline Hello World
    Join Date
    Oct 2009
    Posts
    68

    Default

    I did try searching.

    I found this link:
    http://codex.wordpress.org/Moving_Wo...thin_Your_Site

    and this link

    http://www.pre23.com/2010/01/how-to-...omain-to-root/

    I changed the WordPress address (URL) and the Site address (URL) to be the root directory of my web site, then I copied all the files over to my root just as it says. But now when I open the web site in the browser, it is a blank page.

  5. #5
    chipbennett's Avatar
    chipbennett is offline WordPress Legend
    Join Date
    Feb 2009
    Location
    St. Louis, MO
    Posts
    1,992

    Default

    Quote Originally Posted by Xarzu View Post
    I did try searching.

    I found this link:
    http://codex.wordpress.org/Moving_Wo...thin_Your_Site

    and this link

    http://www.pre23.com/2010/01/how-to-...omain-to-root/

    I changed the WordPress address (URL) and the Site address (URL) to be the root directory of my web site, then I copied all the files over to my root just as it says. But now when I open the web site in the browser, it is a blank page.
    Take a look at [root]\index.php and make sure this line's require path is still correct:
    PHP Code:
    require('./wordpress/wp-blog-header.php'); 
    Take a look at your wp-config, and make sure this line's require path is still correct:
    PHP Code:
    define('ABSPATH'dirname(__FILE__).'/');
    require_once(
    ABSPATH.'wp-settings.php'); 
    After that, take a look at your .htaccess file. You might just delete everything between the WordPress comment tags:
    PHP Code:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    (
    rewrite rules go here)
    </
    IfModule>

    # END WordPress 
    You can safely delete everything between these tags and let WordPress re-create them, if they are causing problems.
    WP TurnKey - Turn-Key WordPress installation and maintenance services
    WordPress user since 2005 | @chip_bennett | chipbennett.net | cbnet Plugins

  6. #6
    Xarzu's Avatar
    Xarzu is offline Hello World
    Join Date
    Oct 2009
    Posts
    68

    Default

    I think it is all about the .htaccess file. It is apparently not structured to handle an index.php file. This file is hidden. It does not show up in my filezilla ftp client.

    http://www.arguemax.com/.htaccess

  7. #7
    andrea_r's Avatar
    andrea_r is offline WordPress Rockstar
    Join Date
    Jan 2009
    Location
    Eastern Canada
    Posts
    1,325

    Default

    No, a blank page is a php error. If you can find and read the error logs in your server, it should give lots of hints.

    You have to copy all the wp files and the folders to the root.

  8. #8
    Xarzu's Avatar
    Xarzu is offline Hello World
    Join Date
    Oct 2009
    Posts
    68

    Default

    Quote Originally Posted by andrea_r View Post
    No, a blank page is a php error. If you can find and read the error logs in your server, it should give lots of hints.

    You have to copy all the wp files and the folders to the root.
    I thought the same thing at first until I opened the .htaccess in the browser and it did not list index.php as acceptable. After working with my service provider, we fixed the problem.

    Now to change the link settings between the blog and the bbpress forum so that they talk to each other.

  9. #9
    Xarzu's Avatar
    Xarzu is offline Hello World
    Join Date
    Oct 2009
    Posts
    68

    Default

    it seems to be working fine now.

    When I installed the wordpress and the bbpress, I gave settings to ensure that they were tied together.

    Now that I have moved the wordpress to the root directory, what do I have to change in the wordpress and the bbpress to make sure that when you post to the blog it appears in the forum etc.?

  10. #10
    hakre's Avatar
    hakre is offline Here For The Peanuts
    Join Date
    Jun 2010
    Posts
    129

    Default

    Quote Originally Posted by Xarzu View Post
    it seems to be working fine now.
    fine.

    Quote Originally Posted by Xarzu View Post
    When I installed the wordpress and the bbpress, I gave settings to ensure that they were tied together.

    Now that I have moved the wordpress to the root directory, what do I have to change in the wordpress and the bbpress to make sure that when you post to the blog it appears in the forum etc.?
    Just give bbpress the updated settings you once initially set when you tied both together. I think that should do the job. In case you moved bbpress as well, you need to reflect that in bbpress settings as well. Please take a look into the bbpress documentation for more information about that.
    hakre on wordpress (clicking this all three minutes help to keep the cache fresh - thanks)

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •