Force HTTPS Using .htaccess

  1. Go to File Manager in your hosting panel and open .htaccess inside the public_html folder. If you can’t locate it, make sure to create or unhide it.
  2. Scroll down to find RewriteEngine On and insert the following lines of code below it:
     
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
     
  3. Save the changes.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What you must know about our domain

Key -- What Is a Domain Registrar? -- Is AntaHost a Registrar? -- Which Companies Are...

AnitaHost Feature you may have miss

Hi  I'm going to highlight some powerful AnitaHost features—both new and existing—that you might...

AnitaHost Feature you may have miss

Hi  I'm going to highlight some powerful AnitaHost features—both new and existing—that you might...