Will https on every page affect rankings, if it redirects from http to https.

Discussion in 'Google' started by UKdude, Dec 16, 2010.

  1. #1
    I have a website with a form on every page and as a result it redirects to the https version url when a user clicks on every page of my site.

    How does https affect rankings, in webmaster tools I used the fetchbot and it only showed some code not all and my developer says its due to googlebot not liking the https redirect?

    Anyone any experience with google and https urls etc?

    Thanks
     
    UKdude, Dec 16, 2010 IP
  2. UKdude

    UKdude Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi anyone help thanks.

    this is currently how we do it.

    on each page this code is called

    <?php

    if( $_SERVER['SERVER_PORT'] == 80) {
    header('Location:https://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).''.basename($_SERVER['PHP_SELF']));
    die();
    }

    ?>
     
    Last edited: Dec 17, 2010
    UKdude, Dec 17, 2010 IP
  3. webdev007

    webdev007 Active Member

    Messages:
    1,037
    Likes Received:
    13
    Best Answers:
    3
    Trophy Points:
    88
    #3
    Google do not like redirects so avoid as far as possible. Either use HTTP or HTTPS within the web page links so that once clicked the user go to that URL without any redirection.
     
    webdev007, Dec 17, 2010 IP