diff --git a/.htaccess b/.htaccess index 3c17907..6d61cc7 100644 --- a/.htaccess +++ b/.htaccess @@ -1,18 +1,10 @@ RewriteEngine on RewriteBase / -## www-Redirection -#RewriteCond %{HTTP_HOST} !^max-mehl\.com$ -#RewriteRule ^(.*)$ https://max-mehl.com/$1 [L,R=301] -#RewriteCond %{HTTP_HOST} !^mehl\.mx$ -#RewriteRule ^(.*)$ http://mehl.mx/$1 [L,R=301] -RewriteCond %{HTTP_HOST} ^(.*)\.mehl\.mx$ [NC] +## Redirect other domains +RewriteCond %{HTTP_HOST} !^mehl\.mx$ RewriteRule ^(.*)$ http://mehl.mx/$1 [L,R=301] -## Alias Domain -RewriteCond %{HTTP_HOST} max-mehl.com$ [NC] -RewriteRule ^(.*) http://mehl.mx/$1 [R=301,L] - ## Nice URLs # Rewrite URL/de to URL/index.de.php RewriteRule ^(..)/?$ /index.$1.php