• 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://%{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 or 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 to see the link]

Viewing 1 replies (of 1 total)
  • 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.