site on subdomain is redirecting to main site after installing wildcard ssl cert on both


I have a wordpress site on and a second one on already had an ssl certificate working.

In cPanel I installed a new wildcard ssl certificate intended for ‘*’

(sorry, apparently i don’t have enough reputation to post more than 2 links)

At this point:
https was continuing to function properly.

http was still working.

https was redirecting to https

So the blog needs more work.

I changed the wordpress site-url and site-address of the blog to ‘‘.

And I changed the .htaccess of the blog and added 3 lines on top:

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

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress

https still redirects to https

http also redirects to https

(Changing the site-url and address and the .htaccess back, doesn’t reverse the redirect.)

The only redirect in cPanel is 403 for ‘.(htaccess|htpasswd|errordocs|logs)$’

edit: Note that is also redirecting the

What could be causing the blog to redirect to the main site.

Dan1ell 6 years 2017-07-27T13:23:20-05:00 0 Answers 77 views 0

Leave an answer