Title: Adding a second wordpress
Last modified: August 20, 2016

---

# Adding a second wordpress

 *  Resolved [jghogue](https://wordpress.org/support/users/jghogue/)
 * (@jghogue)
 * [13 years ago](https://wordpress.org/support/topic/adding-a-second-wordpress/)
 * Greeting all,
 * I have wp installed in a subdirectory. I copied index.php and .htaccess to the
   root. I moved wp-config.php to the root. All works well on this site. Going to
   [http://www.abc.com](http://www.abc.com) takes me to my site.
 * I now want to set up wp for my other domain, [http://www.xyz.com](http://www.xyz.com).
   I can’t copy and move the 3 files to the root since they would over-write my 
   other site.
 * How is this handled?

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [SaebMasarwa](https://wordpress.org/support/users/saebmsarwa/)
 * (@saebmsarwa)
 * [13 years ago](https://wordpress.org/support/topic/adding-a-second-wordpress/#post-3589979)
 * you can through cpanel make xuz.com directoy another one, this way the 2 domains
   don’t get conflicted.
 *  Thread Starter [jghogue](https://wordpress.org/support/users/jghogue/)
 * (@jghogue)
 * [13 years ago](https://wordpress.org/support/topic/adding-a-second-wordpress/#post-3589999)
 * I understand that wp for xyz.com would be installed in a different subdirectory.
   I can’t copy and move the 3 files for xyz.com (index.php, .htaccess and wp-config.
   php) to the root since they would over-write the files that were placed there
   for abc.com.
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [13 years ago](https://wordpress.org/support/topic/adding-a-second-wordpress/#post-3590087)
 * If you’re doing a new installation for a new domain you won’t be moving any files.
   None. If you are you’re doing it wrong.
 * To do a new installation, you would do a completely new installation. All of 
   the file swould be new. No copying and no moving.
 *  Thread Starter [jghogue](https://wordpress.org/support/users/jghogue/)
 * (@jghogue)
 * [13 years ago](https://wordpress.org/support/topic/adding-a-second-wordpress/#post-3590098)
 * Thank you for replying.
 * I followed the instructions here: [http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory).
   I followed the instructions for using a pre-existing subdirectory install. I 
   had no problem with bringing the first site online.
 * Now I am trying to bring the second site online (hosted within the same account)
   but if I setup the 3 files in the root (public_html) I will override the previous
   files.
 * What am I missing?
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [13 years ago](https://wordpress.org/support/topic/adding-a-second-wordpress/#post-3590099)
 * Do you have the same root folder for both domains? If so, then there’s nothing
   that you can do. It’s one or the other.
 * However, most server control panels set up different root folders for separate
   domains so you’ll need to do a new installation in the second root folder.
 * Really, you didn’t need to do anything about moving files with the first installation.
   I think that’s where you’ve become confused. There should be completely different
   folders for both domains, so you just need to do a standard installation in each
   of those folders.
 *  Thread Starter [jghogue](https://wordpress.org/support/users/jghogue/)
 * (@jghogue)
 * [13 years ago](https://wordpress.org/support/topic/adding-a-second-wordpress/#post-3590100)
 * Before I moved the files to the root, I had to goto [http://www.abc.com/blog](http://www.abc.com/blog)
   to access the site. Now I can goto [http://www.abc.com](http://www.abc.com) and
   the site comes up.
 * Based on what you are telling me, my second site will have to be [http://www.xyz.com/blog](http://www.xyz.com/blog),
   correct?
 * If I want all of my sites to run from [http://www.whateversite.com](http://www.whateversite.com),
   do I need to use the multisite version (running a network of WordPress sites)?
 * BTW, thank you for answering. I was getting desperate.
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [13 years ago](https://wordpress.org/support/topic/adding-a-second-wordpress/#post-3590101)
 * Now you’re confusing me.
 * Do you have two different folders in your hosting account, one for each domain
   name? You should.
 * If you do have that, don’t move any files. Don’t change anything that you have
   now. Install WordPress directly into the folder of the second domain that isn’t
   currently active. don’t worry about moving any files anywhere.
 * The only reason that you’d need to install into a `/blog/` folder is if that’s
   where you want it to be. If you want it as the main website install it in the
   main folder.
 *  Thread Starter [jghogue](https://wordpress.org/support/users/jghogue/)
 * (@jghogue)
 * [13 years ago](https://wordpress.org/support/topic/adding-a-second-wordpress/#post-3590103)
 * I installed wp into public_html/folder1 for [http://www.abc.com](http://www.abc.com).
   I couldn’t get the site to run as [http://www.abc.com](http://www.abc.com) until
   I moved .htaccess, index.php and wp-config into the root (public_html).
 * Now I want to install wp into public_html/folder2 for [http://www.xyz.com](http://www.xyz.com)
   but the instructions telling me to move the 3 files to the root will over-write
   the previous files for abc.com. Leaving all files in folder2 will require including
   the folder name in the address, correct? (www.xyz.com/folder2)
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [13 years ago](https://wordpress.org/support/topic/adding-a-second-wordpress/#post-3590104)
 * You still haven’t answer the question that I’ve asked twice now.
 * Do you have separate folders for both sites? You have said that the first site
   is working, but what do you see when you go to the second site?
 * Also, **forget about moving files**. You **do not** need to do that. I said that
   before too…
 * How the folders are set up depends on how your hosting server is set up. If there
   is a separate folder set up for the second domain then you will not need anything
   else and you will not see this folder in the URL. Put all of the WordPress files
   into the folder for the second site and try the install from that domain. That
   will soon tell you if it will work. Again, do not move any files. If you move
   any files this second time you will break something.
 *  Thread Starter [jghogue](https://wordpress.org/support/users/jghogue/)
 * (@jghogue)
 * [13 years ago](https://wordpress.org/support/topic/adding-a-second-wordpress/#post-3590107)
 * catacaustic,
 * Thank you for your help. Your last post cleared up my confusion and I now have
   both sites working as I wanted.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Adding a second wordpress’ is closed to new replies.

## Tags

 * [multiple-installs](https://wordpress.org/support/topic-tag/multiple-installs/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 10 replies
 * 3 participants
 * Last reply from: [jghogue](https://wordpress.org/support/users/jghogue/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/adding-a-second-wordpress/#post-3590107)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
