Title: https redirect via httaccess only works on first site in multisite setup
Last modified: August 2, 2020

---

# https redirect via httaccess only works on first site in multisite setup

 *  [maintdirect](https://wordpress.org/support/users/maintdirect/)
 * (@maintdirect)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/https-redirect-via-httaccess-only-works-on-first-site-in-multisite-setup/)
 * Hi, I can’t seen to get my WP Multi-site setup to redirect from http to https
   on anything other than the first site, my site number 2+ or any of the other 
   sites simply doesn’t want to redirect, the default site however does fine.
 * I’ve tried putting the following in .httaccess… (C:\inetpub\wordpress\.htaccess)
 * RewriteEngine On
    RewriteCond %{HTTPS} off RewriteRule ^(.*)$ [https://%](https://%){
   HTTP_HOST}%{REQUEST_URI} [L,R=301]
 * I am happy for ALL sites to re-direct to https, first site seems to work a treat
   however i have noticed that if comment out (#) EVERYTHING in .htaccess file the
   FIRST site STILL auto-redirects to https despite .httaccess effectively having
   nothing in it! – Am I missing something obvious ? I’ve got no plugins that perform
   https redirect so i’m a bit stumped as to whats going on.
 * The certificates are working ok, i can type [https://www.mydomain.com](https://www.mydomain.com)
   or [https://mydomain.com](https://mydomain.com) and it loads over https ok, https
   is in the domains Site Address (URL) and also ‘Siteurl’ and ‘Home’ settings for
   multisite.
 * Many thx
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhttps-redirect-via-httaccess-only-works-on-first-site-in-multisite-setup%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [JNashHawkins](https://wordpress.org/support/users/jnashhawkins/)
 * (@jnashhawkins)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/https-redirect-via-httaccess-only-works-on-first-site-in-multisite-setup/#post-13200778)
 * From what I see, you are on a IIS server…
 * IIS doesn’t work with htaccess and you are on a Windows Based box…
 * Windows doesn’t work with htaccess either. Atleast that’s what I’ve been told!
 * So, what I’d do if I found myself in that situation (fat chance, I won’t run 
   multisite on anything but Apache on Linux myself) would be to use Cloudflare 
   with their free SSL for sites that don’t need SSL for eCommerce or HIPAA Compliance.
   Your origin server will appear to run https out in public and Cloudflare’s plugin
   may protect the origin also if you wish to try that. Again, I don’t know if that
   plugin will work with a multisite on IIS and Windows.
 * There’s also a couple plugins for WordPress that seem to be able to assist with
   SSL and the few I’ve looked at seem to work with multisite. Not sure they will
   work with IIS though.
 * You might also search for some tutorials covering IIS, multisite, and SSL. I’m
   sure there’s a few…
 * You’ll want to avoid any that mention Nginx or Apache web servers as that will
   probably just send you down the htaccess track again and you don’t need that.

Viewing 1 replies (of 1 total)

The topic ‘https redirect via httaccess only works on first site in multisite setup’
is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [JNashHawkins](https://wordpress.org/support/users/jnashhawkins/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/https-redirect-via-httaccess-only-works-on-first-site-in-multisite-setup/#post-13200778)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
