HTTPS subdomain continues to redirect to main HTTPS domain

Be disappointed, so I hope someone can help. I think this is a simple fix in the .htaccess file.

I am trying to implement a wildcard SSL certificate for my member portal.

My main domain is www.rawtillwhenever.com. Subdomain - members. http://www.partner.ru/

I built a main domain without a security certificate and just added it to it today. I bought a wildcard certificate from Bluehost and then used the "Really Simple SSL" wordpress plugin to add it to the site.

I changed the site url on the members portal to include https, but it (https // members.rawtillwhenever.com) keeps the redirect to https // rawtillwhenever.com

If I try to go to http // members.rawtillwhenever.com (without https) it still redirects to https // rawtillwhenever.com

I contacted bluehost support and they just gave me this document here. https://my.bluehost.com/cgi/help/766

The main domain is in the subfolder / public _html / rawtillwhenever / and the subdomain is in / public _html / rawtillwhenever / members /

When I use http / https header validation it returns this:

HTTP/1.1 301 Moved Permanently => 
Date => Sun, 14 May 2017 20:04:11 GMT
Server => Apache
Location => https://www.rawtillwhenever.com/
Cache-Control => max-age=3600
Expires => Sun, 14 May 2017 21:04:11 GMT
Vary => Accept-Encoding,User-Agent
Content-Length => 0
Connection => close
Content-Type => text/html; charset=UTF-8

      

Htaccess file for subdomain:

# 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]
</IfModule>

# END WordPress

      

If someone can help me that would be great, otherwise I will pay for your time to fix it.

EDIT updated the .htaccess file for this subdomain:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^members.rawtillwhenever.com$`
RewriteCond %{REQUEST_URI} !^/members/
RewriteRule ^(.*)$ /members/$1
RewriteCond %{HTTP_HOST} ^members.rawtillwhenever.com$`
RewriteRule ^(/)?$ members/index.php [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]
</IfModule>

# END WordPress

      

still gets redirected

+3


source to share


1 answer


Not sure about your specific configuration, but what you are probably looking for is something like:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^members.rawtillwhenever.com$`
RewriteCond %{REQUEST_URI} !^/members/
RewriteRule ^(.*)$ /members/$1
RewriteCond %{HTTP_HOST} ^members.rawtillwhenever.com$`
RewriteRule ^(/)?$ members/index.php [L]

      



After that, try clearing your browser cache to enforce the new rules.

Hope this helps! :)

0


source







All Articles