Title: WP Multisite (subdirectory) redirect problem
Last modified: August 19, 2016

---

# WP Multisite (subdirectory) redirect problem

 *  [Big Fish](https://wordpress.org/support/users/big-fish/)
 * (@big-fish)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/wp-multisite-subdirectory-redirect-problem/)
 * If I try to access another site without putting the “www.” in front of the main
   domain, it redirects to the root install.
 * [http://www.mysite.com](http://www.mysite.com) – works
    [http://www.mysite.com/subdirectory](http://www.mysite.com/subdirectory)–
   works [http://mysite.com](http://mysite.com) – redirects to [http://www.mysite.com](http://www.mysite.com)
   which is fine **[http://mysite.com/subdirectory](http://mysite.com/subdirectory)–
   redirects to [http://www.mysite.com](http://www.mysite.com)**
 * I think the problem has something to do with this line in my wp-config file:
   
   define( ‘DOMAIN_CURRENT_SITE’, ‘www.mysite.com’ );
 * Should it not include the “www.”? What should I do to fix it?
 * If I just remove it in the wp-config file, this is what I get:
 * [http://www.mysite.com](http://www.mysite.com) – works
    [http://www.mysite.com/subdirectory](http://www.mysite.com/subdirectory)–
   works **[http://mysite.com](http://mysite.com) – “Error establishing database
   connection”** **[http://mysite.com/subdirectory](http://mysite.com/subdirectory)–“
   Error establishing database connection”**

The topic ‘WP Multisite (subdirectory) redirect problem’ is closed to new replies.

## Tags

 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [wp-config](https://wordpress.org/support/topic-tag/wp-config/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 0 replies
 * 1 participant
 * Last reply from: [Big Fish](https://wordpress.org/support/users/big-fish/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/wp-multisite-subdirectory-redirect-problem/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
