Title: Direct link wrong redirect
Last modified: December 18, 2019

---

# Direct link wrong redirect

 *  [devtb](https://wordpress.org/support/users/devtb/)
 * (@devtb)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/direct-link-wrong-redirect/)
 * I just created multisite and split my site to two sites.
    First site: [http://www.example.com](http://www.example.com)(
   first, main site) Second site: [http://www.site.com](http://www.site.com) Both
   are now on the same server.
 * If I type in browser in search bar direct link of secondary site (www.site.com)
   it goes to this site.
 * The problem is when I write site.com it goes to [http://www.example.com](http://www.example.com)
   
   Why do I always have to add www. before domain to go on site I wanted. [http://www.example.com](http://www.example.com),
   example.com should go to [http://www.example.com](http://www.example.com) [http://www.site.com](http://www.site.com),
   site.com should go to [http://www.site.com](http://www.site.com) and not on [http://www.example.com](http://www.example.com)
    -  This topic was modified 6 years, 5 months ago by [devtb](https://wordpress.org/support/users/devtb/).

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

 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/direct-link-wrong-redirect/#post-12250200)
 * Multisite Subdomain Netwowrk `www.network.com` , secondary site `ns1.network.
   com` (obviously it is not possible to insert www for secondary sites).
    From 
   WordPress 4.5 without mapping plugins, after creating the secondary site when
   clicking on edit, the mapping of the domains is activated (it can be any domain
   while with Multisite subdomain it is limited to add a subdomain to the network).
 *  Thread Starter [devtb](https://wordpress.org/support/users/devtb/)
 * (@devtb)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/direct-link-wrong-redirect/#post-12250288)
 * After creating second site I changed whole link. There are basically 2 different
   multisites on same server
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/direct-link-wrong-redirect/#post-12250307)
 * ok is the correct configuration, you can diagnose if your htaccess rewrites the`
   site.com` url (without www prefix) in `www.example.com`.
    It’s definitely a server-
   side rewrite. do you also have a DNS record for `site.com` or just `www.site.
   com` ?
 *  Thread Starter [devtb](https://wordpress.org/support/users/devtb/)
 * (@devtb)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/direct-link-wrong-redirect/#post-12250475)
 * I cant see that rewrite in htaccess file
    This is in rewrite section:
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       		RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
   
       # add a trailing slash to /wp-admin
       RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
   
       RewriteCond %{REQUEST_FILENAME} -f [OR]
       RewriteCond %{REQUEST_FILENAME} -d
       RewriteRule ^ - [L]
       RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
       RewriteRule ^(.*\.php)$ $1 [L]
       RewriteRule . index.php [L]
       </IfModule>
       ```
   
 * I will check DNS records also.

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

The topic ‘Direct link wrong redirect’ is closed to new replies.

## Tags

 * [direct](https://wordpress.org/support/topic-tag/direct/)
 * [domain](https://wordpress.org/support/topic-tag/domain/)
 * [link](https://wordpress.org/support/topic-tag/link/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [devtb](https://wordpress.org/support/users/devtb/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/direct-link-wrong-redirect/#post-12250475)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
