Accredited Registrar Accredited Registrar

Frequently Asked Question

FAQ / Basics


How to redirect from http to https?

Create the .htaccess file in your website folder and add the below line to redirect a website from HTTP to HTTPS.

RewriteEngine on
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule (.*) https://www.yourdomainname.com%{REQUEST_URI} [R=301,L]

Note: In the above code, replace 'www.yourdomainname.com' with your correct domain name.

How this faq is helpful:

Not at all
helpful
Not much
helpful
Some what
helpful
Very
helpful
Extremely
helpful

What could be better? (Optional)
X
  Not related to my issue
  Too complicated explanations
  Too much information
  Incorrect information
  Unclear information
  Incomplete information
  Too old information
Do you have any other feedback about this faq ?
1000

Related Tags :