• Resolved Diablo2

    (@diablo2)


    Hi guys,
    I am somewhat new, so i’d appreciate some newbie help.

    Simple scenario: My main site is currently under the “Public_HTML” root (not inside a subfolder.) I’d simply like to move it to a subfolder within Public_HTML, kind of like an add-on domain, basically. I’d still like to keep the same everything (same hosting company, same domain, URLs, etc.)

    I simply need to free up the Public_HTML root in order to (possibly) install a WP Multisite later on.

    I was reading this document:
    https://codex.www.ads-software.com/Moving_WordPress

    However, all the content on that page overwhelmed me.

    So long story short, considering the information i just gave you, do I NEED to follow all 15+ steps listed in that document? Or am I all set by simply manually creating the subfolder, and then copying all files and dumping them there? Could it really be THAT easy and simple?

    Thanks, confirmation is appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Don’t simply drag and dump. The database has values set by directory path, so if you drag and drop into a sub-folder, those settings will be looking for the old URL, instead of the new one. This will create errors all over the place.
    That being said…
    Yes, you do need to follow the steps described in the wordpress codex.
    If you need any help, I’d be glad to offer any clarification.

    Thread Starter Diablo2

    (@diablo2)

    Thanks a lot for offering your help! I’ll try to keep this as crystal clear as possible.

    Recap of my current installation: The main WP site is in the root of Public_HTML.
    My goal: To move that root site to a sub-folder, “Public_HTML/MySite.com.”
    Why? In order to install a WP multi-site in the Public_HTML root.

    Using the above documentation/link from my first post, I will dissect the steps that im not 100% sure about, in order:

    “Step 1. If you will be moving your WordPress core files to a new directory, create the new directory.” In this case, I logged in via FTP and created a new folder inside of Public_HTML (where my site will eventually reside.). So far so good?

    Step 4: “In the box for WordPress address (URI): change the address to the new location of your main WordPress core files.” Right now my current address is listed as https://MySite.com. So, do I leave this as-is without any changes? If not, then what exactly do I type in?

    Step 5: In the box for Site address (URL): change the address to the new location, which should match the WordPress (your public site) address (URI)” Same as step 4: Do I leave this as-is without changes? Or type something else?

    Step 8:”Move your WordPress core files to the new location.” I assume this step simply involves copying all files/folders from the root of Public_HTML into “Public_HTML/MySite.com” (a simple copy-paste via FTP would do), correct?

    Step 11: “Existing image/media links uploaded media will refer to the old folder and must be updated with the new location. You can do this with the Velvet Blues Update URLs plugin.” I believe the Velvet Blues plugin also asks me for the OLD and the NEW location. I have the same question as Step 4 and 5: Do I simply type in the same URL as it’s always been? (https://MySite.com) or does it require something more thorough like “Public-HTML/MySite.com?”

    I believe the above steps are the only ones im confused about. Can you confirm or correct me on those?

    Thanks again, you don’t know how much I appreciate it (and sorry about the newbie questions!)

    Thread Starter Diablo2

    (@diablo2)

    I have now resolved the issue. I basically followed these instructions on Hostgator (swapping a primary domain for an addon domain, and vice-versa.)

    https://support.hostgator.com/articles/pre-sales-policies/billing-account-changes/pre-change-checklist-for-changing-your-primary-domain

    Everything worked like a charm.
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Moving Main Site from Public_HTML Root’ is closed to new replies.