Title: Subsite redirects to main site, unless https
Last modified: July 22, 2021

---

# Subsite redirects to main site, unless https

 *  [biosboii](https://wordpress.org/support/users/biosboii/)
 * (@biosboii)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/subsite-redirects-to-main-site-unless-https/)
 * Hello,
    I have the following problem: I have a network with a main domain (example.
   com) and a subdomain (foo.example.com) The site is registered under the URL [http://www.foo.example.com](http://www.foo.example.com),
   and the A records for foo.example.com [http://www.foo.example.com](http://www.foo.example.com)
   are all pointing to the WP installation. But when I visit foo.example.com it 
   redirects me to the main site. If I visit [http://www.foo.example.com](http://www.foo.example.com)
   it also redirects to the main site, the only option where I am not redirected
   to example.com is when I fully type out [https://www.foo.example.com](https://www.foo.example.com).
   I think this is a URL rewriting thing, sorry I cannot share the URL due to safety
   concerns of the client, but what could that be? I read that MU supports domain
   mapping (www.foo.example.com to foo.example.com, as an example) natively, but
   the articles where this is allegedly explained is dead. Wordpress Version is 
   the latest one.

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

 *  [Robert Anderson](https://wordpress.org/support/users/noisysocks/)
 * (@noisysocks)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/subsite-redirects-to-main-site-unless-https/#post-14691683)
 * Hi [@biosboii](https://wordpress.org/support/users/biosboii/). By default WordPress
   will redirect all requests to the site’s canonical URL set in Settings → General.
   This is done so that e.g. there are no duplicate entries for your website in 
   search engines. This is probably what’s happening if both [http://www.example.com](http://www.example.com)
   and [http://www.foo.example.com](http://www.foo.example.com) are pointing to 
   the same WordPress installation.
 * What do you want to appear when you visit [http://www.foo.example.com?](http://www.foo.example.com?)
 *  Thread Starter [biosboii](https://wordpress.org/support/users/biosboii/)
 * (@biosboii)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/subsite-redirects-to-main-site-unless-https/#post-14695107)
 * Hi [@noisysocks](https://wordpress.org/support/users/noisysocks/) ,
    I want a
   different WordPress site to appear, it appears if I visit [https://www.foo.example.com](https://www.foo.example.com),
   but not If I type the URL in any other fashion
 *  [faul knernolan](https://wordpress.org/support/users/faulknernolan/)
 * (@faulknernolan)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/subsite-redirects-to-main-site-unless-https/#post-14699710)
 * Well done with this article! I really like the way you present it and the way
   you make it interesting
    [https://fallguys.onl](https://fallguys.onl)

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

The topic ‘Subsite redirects to main site, unless https’ is closed to new replies.

## Tags

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

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 3 replies
 * 3 participants
 * Last reply from: [faul knernolan](https://wordpress.org/support/users/faulknernolan/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/subsite-redirects-to-main-site-unless-https/#post-14699710)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
