1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Google indexed HTTPS instead of HTTP

Discussion in 'White Hat SEO' started by Powelly, Feb 7, 2012.

  1. Powelly

    Powelly Regular Member

    Joined:
    Jan 1, 2010
    Messages:
    200
    Likes Received:
    29
    Hi there,

    Google has indexed an auto generated holding page of my site: (https://www.domain.com/) instead of my actual site (http://www.domain.com/).

    I have been told the best cause of action for this is to create a .htaccess re-direct and make the https variation go to http. Is this correct?

    If so, what is the best way to do this?

    Can I expect to lose and re-establish rankings?

    Thanks in advance! :cool:
     
  2. therockz

    therockz Junior Member

    Joined:
    Dec 9, 2011
    Messages:
    103
    Likes Received:
    35
    Add this line in your htaccess file

    redirect https://www.domain.com/ http://www.domain.com/
     
  3. SEOWhizz

    SEOWhizz Power Member

    Joined:
    Oct 22, 2011
    Messages:
    606
    Likes Received:
    432
    Location:
    Lat: 38N 43' 11.298" Long: 27W 12' 7.733"
    If you want to use http version as your preferred domain:

    1. Set the preferred version (http) in Google Webmaster Tools [Optional].

    2. Create a .htaccess file.

    3. Add 4 lines of code to the .htaccess file to redirect from the https to http version.
    Use ONE of the following (a OR b OR c) :

    a.
    Code:
    Options +FollowSymlinks
    RewriteEngine on
    RewriteCond %{SERVER_PORT} ^443$
    RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
    b.
    Code:
    Options +FollowSymlinks
    RewriteEngine On
    RewriteCond %{HTTPS}=on 
    RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
    c.
    Code:
    Options +FollowSymlinks
    RewriteEngine On
    RewriteCond %{HTTPS} on
    RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}
    (Replace "example.com" with your own website URL)

    4. Upload the file to the root of the site, using either CPanel or a free FTP client, e.g. FileZilla or Cute FTP.

    5. Once the .htaccess file is uploaded, open a browser and goto the https version of your website. You should now be redirected to the proper http version of your site.


    Note that you should not lose any rankings.
     
    Last edited: Feb 7, 2012