Google Indexed Addon Domain with HTTPS

Problem:

Google has indexed the HTTPS version of my addon domain.

Solution:

Occasionally Google will index the HTTPS version of the addon domain, When the account has a SSL/TLS certificate. This causes the URL to change to https://www.maindomain.com/folder/ this causes incorrect cataloging of page information.

To ensure this does not occur please add the following to the .htaccess file.

 
RewriteEngine On
 RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
 RewriteCond %{HTTP_HOST} ^www.domain.com$
 RewriteCond %{SERVER_PORT} ^443$
 RewriteRule ^(.*)$ http://www.domain.com [R=301,L]
Note: Substitute domain.com with your website name.
  • 40 Users Found This Useful
Was this answer helpful?

Related Articles

URL redirect/rewrite using the .htaccess file

Problem: How do I perform a URL redirect/rewrite using the .htaccess file? Solution: .htaccess...

How to host the Primary Domain from a subfolder (.htaccess)

How do I make a sub directory (or sub folder) act as the public_html for your main domain? The...

Redirects that do not work due to PHP variables

Problem: The redirection of www.yourdomain.com/default.html or index.html to...

Redirect

Problem: How do I create a redirect? Solution: The Redirects tool will allow you to redirect...

Restrict subdomain access to addon domains

Problem: How do I stop people from being able to use the addon domain as a subdomain of the...