HTTPS iirf ini redirect
# Following rule is activated if the incoming URL is not connecting to a secure port.
# Performs a Permanent Redirect (301) to the https version of the site if not secure.
RewriteCond %{SERVER_PORT_SECURE} ^0$
RedirectRule ^(.*)$ https://www.zorg-lokaal.nl$1 [R=301]
# Following rule would do the same as above. I am not clear on the relative merrits of
# "HTTPS" vs. "SERVER_PORT_SECURE".
RewriteCond %{HTTPS} off
RedirectRule ^(.*)$ https://www.zorg-lokaal.nl$1 [R=301]
# Yet another variation, this one simply checking the number of the port being used,
# With no validation on SSL vs. clear-text
RewriteCond %{SERVER_PORT} ^80$
RedirectRule ^(.*)$ https://www.zorg-lokaal.nl$1 [R=301]