How to make my Joomla based site run over SSL?

This tutorial is WIP. 

Will include instruction how how to make Joomla load over SSL only.


# WHS - Rewrite all requests to HTTPS without www #
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
## End - WHS - Rewrite all requests to HTTPS without www #

# WHS - Rewrite all requests to HTTPS with www #
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://www.%1/$1 [R=301,L]

RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://www.%{SERVER_NAME}/$1 [R,L]
## End - WHS - Rewrite all requests to HTTPS with www #

  • Joomla, SSL
  • 1 Users Found This Useful
Was this answer helpful?