Title: Multiple instances
Last modified: April 4, 2018

---

# Multiple instances

 *  [macchina](https://wordpress.org/support/users/macchina/)
 * (@macchina)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/multiple-instances-16/)
 * Hello,
 * first of all, I am a beginner in wordpress. So please be patient 🙂
    Ok, here
   is my “problem”:
 * On my hoster I have 2 wordpress installations. Lets say ./dom1 and ./dom2.
    My
   current domain (lets say “domain1.com” is pointing to the root and redirected
   to ./dom1.
 * index.php in root:
    define(‘WP_USE_THEMES’, true); /** Loads the WordPress Environment
   and Template */ require( dirname( __FILE__ ) . ‘/dom1/wp-blog-header.php’ );
 * In the second wp instance I build a complete independent site (this will be “
   domain2.com”).
    Currently I am reaching the directory ./dom2 via “domain1.com/
   dom2”..thats good for testing the site, but not so good, because search-engines
   are also indexing this new (not public) instance “dom2”. How can I prevent, that
   directories below the current wp-instance are reachable? current root: [dom1][
   dom2] [stats] [error] index.php .htaccess .htpasswd
 * Thanks!
    Best regards Ernst

Viewing 1 replies (of 1 total)

 *  [wowpress.host](https://wordpress.org/support/users/wowpresshost/)
 * (@wowpresshost)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/multiple-instances-16/#post-10167168)
 * Add to your robots.txt:
 * disallow: /dom2/*

Viewing 1 replies (of 1 total)

The topic ‘Multiple instances’ is closed to new replies.

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 1 reply
 * 2 participants
 * Last reply from: [wowpress.host](https://wordpress.org/support/users/wowpresshost/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/multiple-instances-16/#post-10167168)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
