WordPress.org

Ready to get started?Download WordPress

Forums

Giving WP it's own directory - in reverse (7 posts)

  1. dragonsjaw
    Member
    Posted 2 years ago #

    I installed in root and that wouldn't work as client had an index.html there they wanted to keep live.
    So I followed these directions : give wp it's own directory

    and I have an install i can work on now.

    But how do I go about getting this back into root after I have it all styled and set up? Do I just reverse the process? Right now it is in a folder called /setup/ and we won't want that as part of the url.
    And I am a bit brain fried.
    thanks

  2. RichardWPG
    Member
    Posted 2 years ago #

    if you install in the directory, your url will be in that directory that you created. by right you should install in your root in the first place. You can try move all your wordpress files from the directory and move it to your root. Make sure you have a backup in case it doesnt work

  3. fonglh
    Member
    Posted 2 years ago #

    @dragonsjaw

    the instructions you've read give you the instructions to do exactly what you need. follow them in sequence and not in reverse.

    Note the files that have to be copied and the code that has to be changed. (Steps 7-9)

    @richard

    following the instructions on that codex page allows the WordPress files to be in domain.com/subfolder, while the site itself is reached at domain.com

    it's not necessary to have the install in root to have the site reachable at root.

  4. dragonsjaw
    Member
    Posted 2 years ago #

    So, fonglh, for right now all is working just dandy, client has index.html LIVE and I have WP set up with:
    WordPress address (URL) http://www.website.org/setup
    Site address (URL) http://www.website.org/setup

    And now when ready to go live with the WP and lose the index.html, I just change the site address back to http://www.website.org and all will work with out the /setup/ folder showing in the url?

    Cool. I never realized that was how that worked for some odd reason.

  5. fonglh
    Member
    Posted 2 years ago #

    you'll have to copy the index.php and .htaccess files to the root folder (where index.html is now) and make some changes to them.

    those are the steps that are given on the codex page.

  6. dragonsjaw
    Member
    Posted 2 years ago #

    Got it thanks!

  7. dragonsjaw
    Member
    Posted 2 years ago #

    Another question on this, If I add content such as photos to the site while in development phase, will I need to reupload those or will the changes to the index.php and .htaccess be all that needs to be changed?

    I am trying to decide how much content to add before going live.

    thanks

Topic Closed

This topic has been closed to new replies.

About this Topic