contao-academy
3/9/2020 - 1:25 PM

Redirect von HTTP zu HTTPS (SSL) Multidomain

Redirect von HTTP zu HTTPS (SSL) Contao 4 Multidomain

# SSL
RewriteCond %{HTTPS} =off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,QSA]

# Add www
RewriteCond %{HTTP_HOST} ^domain1\.de$ [NC]
RewriteRule (.*) https://www.domain1.de/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^domain2\.de [NC]
RewriteRule (.*) https://www.domain2.de/$1 [R=301,L]