+ Reply to Thread
Results 1 to 1 of 1
-
Administrator
- Join Date
- Jan 2010
- Posts
- 65
Redirect To SSL from non SSL Using .htaccess
Use the following code in the htaccess file under the public_html folder for the concerned domain :
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301]
or you can use the one
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.check.com/$1 [R,L]


LinkBack URL
About LinkBacks



Reply With Quote