How to Permanently Redirect from http to https using htaccess
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 –
- Open cpanel then open public_html.
- 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]
</IfModule>
Hope this code work in your website. If any other help so contact me using contact us form. Thank You
