webhostingservices.co.nz 0204 632 648    sales@webhostingservices.co.nz   

Knowledge Base

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 #

Tags: Joomla, SSL

1 user found this helpful

Was this helpful?