File: /datos/www/embajadasyconsulados.procolombia.co/web/.htaccess
########## Begin - To WWW
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
########## End - To WWW
### HTTPS REDIRECT START ###
# HTTP to HTTPS
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# HTTPS to HTTP
#RewriteEngine On
#RewriteCond %{HTTPS} on
#RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=302,L]
### HTTPS REDIRECT END ###