update and clean redirections
This commit is contained in:
12
.htaccess
12
.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
|
||||
|
||||
Reference in New Issue
Block a user