• Resolved tacoberry

    (@tacoberry)


    I have a multisite WordPress install with subdomains where I had a wildcard SSL certificate installed. I went through all my theme, plugin files and content to make sure that all resources, links are now using https so that browsers no longer give out a warning. For the various sites in this multisite install I managed to change the URL’s to be https ones. Now I’m still coping with two things I need to get fixed:

    1. Redirecting old non-https URL’s to new https URL’s

    Right now I have my content available through both the http and https URL’s. What is the best way for me to redirect my old http URL’s to the new https URL’s for the different subdomains and main domain of my site?

    2. Changing main site to be https as well

    I’m not able to change the homepage URLs of the main site (example.com without subdomain or www) through my network admin as it’s greyed out. How can I get this main site to be set up with https URL’s as well?

    Thanks for the assistance guys!

Viewing 1 replies (of 1 total)
  • Thread Starter tacoberry

    (@tacoberry)

    I should’ve managed to fix both of these issues in the following way, thought I’d share it:

    1. Redirecting old non-https URL’s to new https URL’s

    I’ve added these rules to my .htaccess file to get all subdomains and pages 301 redirected to their new https URL’s:

    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=301,NC,L]

    2. Changing main site to be https as well

    I went into phpMyAdmin and changed the URL settings for my main blog in the wp_options table for the main site.

Viewing 1 replies (of 1 total)
  • The topic ‘Redirects to new https URLs, updating main site to https’ is closed to new replies.