You've bought an SSL certificate, yet your website continues to appear as "not secure". In some instances, you may need to take an extra step to enforce HTTPS encryption for requests to your site. The following steps will ensure your SSL certificate is being used to its full potential.
1. Ensure that all links in your code are relative (If you are using a content management system like Wordpress this should not be required).
2. Using Webby or your FTP program of choice, create or load the file 'htdocs/.htaccess' (the dot in front of the word .htaccess is important and necessary). Paste the following snippet of code towards the top of the file:
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
3. Save the file and load your site by typing it into a new browser window. The page should automatically redirect your request to HTTPS and the browser should indicate it is secure. Try navigating around your site and make sure everything is working.
4. If you notice any problems and need to undo the HTTPS enforcement simple load the .htaccess file and remove the three lines you added above. Save the file and the changes take place immediately. Loading the site should no longer redirect to HTTPS.
You purchased an SSL certificate but your website is still showing up as unsecure. In some instances, you may need to take an extra step to enforce HTTPS encryption for requests to your site. The following steps will ensure your SSL certificate is being used to its full potential.
Comments
0 comments
Please sign in to leave a comment.