2 Replies - 650 Views - Last Post: 24 January 2019 - 03:05 AM

#1 matthewjohn938   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 62
  • Joined: 12-October 18

Query related to redirect from HTTP to HTTPS?

Posted 17 January 2019 - 03:24 AM

One of my friend migrated his website from old domain to new domain few months ago. Now he wants to secure the website and want to migrate from HTTP to HTTPS.

Is it OK to have chain redirection? Does it affect the rankings of the website?
Is This A Good Question/Topic? 0
  • +

Replies To: Query related to redirect from HTTP to HTTPS?

#2 Sheepings   User is offline

  • D.I.C Lover
  • member icon

Reputation: 224
  • View blog
  • Posts: 1,260
  • Joined: 05-December 13

Re: Query related to redirect from HTTP to HTTPS?

Posted 17 January 2019 - 08:33 AM

Not really. It won't completely hamper the results in search rankings providing the urls of the domains are identical to those of the original source provider. For example, if you have a source provider url ::
http://www.mysite.com/this-is-my-website.php
and your new domain uses
http://www.myotherwebsite.com/this_is_my_website.php
- notice the symbol changes; and or even if you change the file type from php to html, will be reflected with a negative rank on most search engines.

Key note is to make all the urls identical, - bar the domain name. Once the url strings match the url strings of the old domain, most search engines won't care to much if the domain provider has changed. However, its imperative that the new website holds the original content, with its relative titles and meta data. I'd also suggest you do your redirects manually through your .htaccess file. (.htaccess assuming you are on Linux, commonly named htaccess.txt on windows, and if using IIS, you use web.config).

Just for reference; If you're wondering how to set your server to https, and force it by use of the .htaccess file. You can edit it like this ::
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
if (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] !== 'on') {
    if(!headers_sent()) {
        header("Status: 301 Moved Permanently");
        header(sprintf(
            'Location: https://%s%s',
            $_SERVER['HTTP_HOST'],
            $_SERVER['REQUEST_URI']
        ));
        exit();
    }
}

Of course, you will need to edit your server, to add an SSL cert, and that can be done using most common web control panels such as Cpanel, Plesk, Sentora etc.

Hope this answers your question.

This post has been edited by Sheepings: 17 January 2019 - 08:35 AM

Was This Post Helpful? 1
  • +
  • -

#3 matthewjohn938   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 62
  • Joined: 12-October 18

Re: Query related to redirect from HTTP to HTTPS?

Posted 24 January 2019 - 03:05 AM

Thanks for such a wonderful clarification and your valuable feedback.... I appreciate it.. Thanks again.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1