Description :
HTTP to HTTPS (/ HTTPS to HTTP ) redirect is required to index only one version of a website as Google /search engines consider them separate URLs. (ex. http://khurshed.xyz to https://khurshed.xyz )
Redirect through the .htaccess file
# HTTP to HTTPS redirect set up
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}