• therealbirdman

    (@therealbirdman)


    When I set up my WP blog on GoDaddy years ago, I had never thought that I might want to add more sites, but here I am and it’s not without it’s challenges.

    I guess my problem is that I set the original site up in the webroot directory, so when I went to set up my second site, it had to have https://www.domain/root to get it to show up on the web. I spoke with GoDaddy and they explained that I will need to find out how to install WP to a subdirectory, but then I thought that I would try to figure out how to do it properly, because I will need to add a couple of sites over the next little while, and I would like it to be as organised as possible.

    My question is, how can I move my site out of the root, and into a subdirectory, while still being able to just type in https://www.changethetopic.com, and to also have any other sites accessible by just their domain names? Is this possible to do, or should I just leave https://www.changethetopic.com in the root directory and worry about the other sites as I need to?

Viewing 3 replies - 1 through 3 (of 3 total)
  • beaudaignault

    (@beaudaignault)

    Hello.
    Installing WordPress in a subdirectory is totally doable.
    The way I usually do it is like this:

    1) Download WordPress.
    2) Rename WordPress folder to “desired-subdirectory-name”
    3) Upload that folder to your root
    4) Place a copy the index.php from that folder into your root, and edit it like this:

    require( dirname( __FILE__ ) . '/desired-subdirectory-name/wp-blog-header.php' );
    /** Example from the Twenty Fifteen theme */

    5) Log into yourdomain.com/desired-subdirectory-name/wp-admin/
    6) Go to Settings > General, and define your WordPress Address (URL) as yourdomain.com/desired-subdirectory-name/ and set your Site Address (URL) to yourdomain.com/

    That should do it.
    Good luck & happy blogging!

    Thread Starter therealbirdman

    (@therealbirdman)

    @beaudaignault, thank you very much for your reply, and your detailed instructions. I’m sad to say that I didn’t get a chance to use them, because when I called GoDaddy to find out why it wouldn’t let me write files, they told me that the primary site has to stay in the root, so we just installed the new site to a sub-directory and everything is working great. So far.

    When I was reading your instructions, he did say that that would work, just that we didn’t need to now.

    Again, I do thank you for your response and time that you took to help me. It’s appreciated.

    Chris

    beaudaignault

    (@beaudaignault)

    A pleasure.
    ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Moving primary site from root and installing second site’ is closed to new replies.