HostMonster Web Hosting Help

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.
Knowledgebase Article 21,586 views bookmark tags: google htaccess https index (updated 983 days ago)


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

I do not want to see addon.maindomain.com. How do I do that? (updated 633 days ago)

How do I stop people from being able to use the addon domain as a subdomain of the primary domain? (updated 642 days ago)
Knowledgebase Article 109,374 views tags: addon domain htaccess

How do I make a sub directory (or sub folder) act as the public_html for your main domain? (updated 152 days ago)
Knowledgebase Article 304,351 views tags: Drupal domain htaccess joomla wordpress

Related Help Content

I have setup a pointed/addon domain, where should I upload the files for this domain? (updated 643 days ago)
Knowledgebase Article 98,489 views tags: addon domain pointed

How do I display my home page which is using a name other than index.html? (updated 703 days ago)
Knowledgebase Article 93,897 views tags: directory homepage htaccess index order

What is an Addon domain? (updated 455 days ago)
Knowledgebase Article 116,281 views tags: addon domain

How to Stop A Directory Index From Being Shown (updated 703 days ago)
Knowledgebase Article 80,083 views tags: directory htaccess index

How do I FTP to my addon domains without interfering with my main account. (updated 641 days ago)
Knowledgebase Article 161,715 views tags: addon domain ftp

How can I adjust the php settings specifically for an Addon Domain? (updated 641 days ago)
Knowledgebase Article 88,364 views tags: domain php

Can I make subdomains for my addon domains on the account? (updated 640 days ago)
Knowledgebase Article 118,808 views tags: add addon dns domain park subdomain

What is the difference between parked domains and addon domains? (updated 640 days ago)
Knowledgebase Article 97,725 views tags: add addon domain park parked