If you want to redirect http to https for your website, you can insert the following code in the top of your .htaccess file:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]If you want to redirect http to https for your website, you can insert the following code in the top of your .htaccess file:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Comments
0 comments
Please sign in to leave a comment.