Force redirect website to the SSL Certification connection using .htaccess file

You may need to edit the below code in your .htaccess file: 


RewriteEngine On

RewriteCond %{SERVER_PORT} 80

RewriteCond %{HTTP_HOST} ^(www\.)?yourdomainname\.com$ [NC]

RewriteRule ^(.*)$$1 [R=301,L]


Note: If you are a windows user you may proceed to let our support knows on the rules on which your side wish to redirect the website as windows base hosting do have a different type of rules to be implemented from the back end.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.