Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I installed MultiSite with the URL set as http://example.com, but now I want to force all requests to go over HTTPS, so I'm trying to change the URL to be https://example.com. I've gone through the database and updated all the siteurl and home values to have https, but the site still loads over HTTP, instead of being redirected to HTTPS.

I know that I could setup some htaccess rules, but that's prone to errors. In regular installations WordPress will automatically redirect all requests to the canonical URLS defined in the siteurl and home settings, so I'm assuming that MultiSite does too.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

There are plugins to set the site to SSL. Why not use one of them?

And you do have an SSL certificate installed and active?

share|improve this answer
    
All of the plugins I've seen are to set specific pages to use HTTPS, not the entire site. In regular WP installations the normal method for making the entire site use HTTPS is to set the siteurl and home values. Even if there were some available, there are several reasons why using a plugin is a bad idea when you can just set a config value (security, performance, etc). Also, I'm pretty confident that it doesn't matter if the SSL cert is yet or not. WordPress isn't going to check that when it determines what the canonical URL is. –  Ian Dunn Apr 10 '12 at 15:59
    
True and true, I was just wondering if you already had it setup or not (loads of people don't know you need an SSL cert if you truly want to use SSL, hence the Q). I just remembered I had a site of mine in SSL a while back (not just specific pages, but the whole site as you want it). I'll lookup the code. –  Hiranthi Apr 18 '12 at 12:24
    
Hmm.. couldn't find the code I used back then. However, I did find this: prosauce.org/blog/2010/08/… –  Hiranthi Apr 18 '12 at 12:32
    
I installed Better WP Security for a different reason, but it turns out that it has an option to force all page requests (front and back) to go over SSL. –  Ian Dunn Apr 18 '12 at 14:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.