Redirect subdomains from https to http (2 posts)

  1. rhadoo
    Posted 1 year ago #

    So I have installed my Wp MU the other day, I installed a SSL certificate for my main domain, which is https://makay.ro
    Everything works fine except for the subdomains which are also served through SSL. The issue is that when I try to access a subdomain like http://sub.makay.ro, I get redirected to the https version and first I get to see a warning page "There is a problem with this website's security certificate."
    The certificate I bought is not an wildcard cert, is only for my main domain. I want to have the https disabled for all subdomains and have it work only for my main domain. How can I achieve this?

    I have these rules added to my htaccess to redirect from http to https my main domain:

    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://makay.ro/$1 [R,L]

    I am using SSL Insecure Content Fixer plugin to load my media upload files through https.

    I have added the 2 lines of code to my wp-config to have the login page and admin dashboard served through https.

    If you need any info, please let me know.


  2. Read through this: http://halfelf.org/2014/ssl-for-one-domain-on-multisite/

    I have SSL on two out of 8 sites :)

Topic Closed

This topic has been closed to new replies.

About this Topic