How to Permanently Redirect from http to https using htaccess


Its very important file for permalink. If you want to any change so make backup file first.

How to Redirect to https

Follow simple steps and set url redirect to https using htaccess –

  1. Open cpanel then open public_html.
  2. Open .htaccess file and paste given code and SAVE.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Hope this code work in your website. If any other help so contact me using contact us form. Thank You