Jump to content

Recommended Posts

Posted

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?

  • 1 year later...
  • 2 years later...
Posted

edit your web server's settings or the.htaccess file.

Redirect HTTP to HTTPS: You can use server-side redirects to redirect all HTTP traffic to HTTPS. 

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

server {
    listen 80;
    server_name example.com;
    return 301 https://$host$request_uri;

you should be good to go with redirection with this data

Avtrix Software Solutions

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...