How to force SSL with .htaccess

If you want to force your entire website to go through https, you can add these rules to your .htaccess file:







If your site is in a subfolder, use this code:








Simply replace yourdomain.com with your actual domain name.

Was this answer helpful? 2 Users Found This Useful (4 Votes)