How to .htaccess redirect all http to https
Use .Htaccess as below
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [NE,L,R=301]
</IfModule>
Use .Htaccess as below
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [NE,L,R=301]
</IfModule>
Copyright © 2024 dochost-thailandseohost. All Rights Reserved.