.htaccess Wildcard SSL wordpress subdomain
-
Hi,
I have a SSL Wildcard from Cloudflare installed on my main domain and it works great with the main domain.
The problem is with the subdomains. I just can’t get the SSL to work on the subdomains (which are also WordPress installations).
Bluehost says to put this code on the main domain .htaccess. It works for the main domain, but not for the subdomains. The subdomain still works with http, but if I access it with https, the main page opens without CSS, and every link I click will just give an error.# Custom subdomain .htaccess SSL + WordPress RewriteEngine On RewriteCond %{HTTP_HOST} ^subdomain.maindomain.com$ RewriteCond %{REQUEST_URI} !^/subfolder/ RewriteRule ^(.*)$ /subfolder/$1 RewriteCond %{HTTP_HOST} ^subdomain.maindomain.com$ RewriteRule ^(/)?$ subfolder/index.php [L] # End custom subdomain .htaccess # Custom maindomain .htaccess WordPress RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^(www.)?maindomain.com$ RewriteRule ^index\.php$ - [L] RewriteCond %{HTTP_HOST} ^(www.)?maindomain.com$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # End custom maindomain .htaccess
I’ve tried everything and still don’t have the subdomain running with SSL.
Is there anyone who had the same problem and found a solution?Thanks!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘.htaccess Wildcard SSL wordpress subdomain’ is closed to new replies.