Please Help! - How to move content out of a sub-folder???

by abbot Banned
8 replies
  • WEB DESIGN
  • |
I'm building a website for a friend that has a pre-existing HTML business website. To eliminate downtime while we built the website I chose to build the new website in a sub folder under his business website domain (www.website.com/wordpress).

I started just like you would any wordpress site. New database and all.

Now the site is complete and I want to move it out of the subfolder and into the public_html folder.

Do I just have to copy all the content in the subfolder and paste it in the public_html?

Or do I have to modify parts of the database? I'm not sure what I would modify in the database but it seems like I would have to?
#content #move #subfolder
  • Profile picture of the author GeoffTodd
    I have done this before and it was a bit of a pain. Yo do need to make some changes in the DB and I think also in the WP admin.
    This might help guide you in the right direction - Moving WordPress « WordPress Codex
    Signature
    Marketing Afloat -My personal marketing journey
    {{ DiscussionBoard.errors[8612756].message }}
  • Profile picture of the author RobinInTexas
    The page on WordPress.org is intimidating because it covers several different situations. Yours is straightforward, 14 steps, one step at a time a minute or less for each one, it's simple.
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[8613106].message }}
  • Profile picture of the author ConnorMarc
    Contact me via my signature, and I'll help you out.
    {{ DiscussionBoard.errors[8613730].message }}
  • Profile picture of the author David V
    ConnorMarc volunteered to help, so hopefully you've got this worked out.

    If not, this is a VERY easy thing to do.
    You do not need to even move the files. Why? Leave the root clean.

    Those WP links should be helpful, but the short version is this:

    BACKUP YOUR SITE FIRST and database.


    Login to admin and change the site url fields.
    Go to "Settings"...."General".
    WordPress Address (URL)
    Site Address (URL)
    You have the actual location url, and the url you want it to be.
    So you might have:
    mysite.com
    and
    mysite.com/blog

    "blog" being the folder the files reside in.

    Click Save. Leave it and go to FTP.

    Use FTP or SFTP and go to the server/files.
    Download index.php and .htaccess from the "blog" folder to your computer somewhere.
    Open index.php and down the bottom you will see this:

    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');


    Change the path to the real path of the files like this:
    /** Loads the WordPress Environment and Template */
    require('./blog/wp-blog-header.php');


    Re-upload the index.php and the .htaccess using FTP to the ROOT of the server.

    Now when you go to the site it will appear to be in the root even though the files reside in a subfolder.

    If you didn't do this in the correct order and you have an oops moment, don't panic it's easily reversed.
    Besides, you did a full backup anyway, right?
    {{ DiscussionBoard.errors[8613762].message }}
    • Profile picture of the author abbot
      Banned
      On the wordpress codex it says "use search and replace function" What does this mean?

      I don't get how to do this.
      {{ DiscussionBoard.errors[8616216].message }}
      • Profile picture of the author SuddenHealth
        I actually recently did this as well. I moved my blog from one domain and changed it to the a subdomain, so just a little opposite from what you're trying to do. I simply went into the admin panel and changed the url. The change was seamless.
        {{ DiscussionBoard.errors[8620058].message }}

Trending Topics