update and clean redirections

This commit is contained in:
2015-07-08 00:06:25 +03:00
parent f9adf9743f
commit 04c99ec643

View File

@@ -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