Force ssl/https for entire website
-
Hello,
I have recently secured SSL certificates for my website and I would like to force HTTPS for all visitors. I have read that this can be accomplished via .htaccess, however, when I place the .htaccess file in the root directory of my site, something malfunctions and breaks a lot of my existing code.
This is what I am placing in the .htaccess file:
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.mysite.com/$1 [R,L]
What have I done wrong and how can I begin fixing this issue? Thank you for your time and help.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Force ssl/https for entire website’ is closed to new replies.