Create a file in the directory of your website called .htaccess

if the file exists simply open it up and add the following code to the bottom of the file, creating a couple spaced from existing code using the enter key.

[sourcecode lang=”plain” 1=”<b>RewriteEngine” 2=”On</b>” 3=”<b>RewriteCond” 4=”%{HTTPS}” 5=”off</b>” 6=”<b>RewriteRule” 7=”^(.*)$” 8=”https://%{HTTP_HOST}%{REQUEST_URI}” 9=”[L,R=301″ language=”.”]</b>


Save the .htaccess file and try to access your website. It should redirect to the https version of the website if a valid SSL certificate is installed on your web hosting.