contao-academy
1/6/2015 - 9:37 AM

Redirect von HTTP zu HTTPS (SSL) Contao 3 + Contao 4

Redirect von HTTP zu HTTPS (SSL) Contao 3 + Contao 4

# HTTPS Umleitung Contao 4
# nach RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
	
	
# HTTPS Umleitung Contao 3.5
# nach RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

# Uncomment the following lines to add "www." to the domain:
  
RewriteCond %{HTTP_HOST} ^domain\.de$ [NC]
RewriteRule (.*) https://www.domain.de/$1 [R=301,L]


#Redirect to https - Domainfactory
RewriteCond %{SERVER_PORT} 80
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]