Forum

New domain URL toolkit redirect

max
17 September 2016, 17:08
Hello
what is the url toolkit for
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ALTE-domain.de$ [NC]
RewriteRule ^(.*)$ http://www.NEUE-domain.de/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.ALTE-domain.de$ [NC]
RewriteRule ^(.*)$ http://www.NEUE-domain.de/$1 [L,R=301]


many thanks
max
Hugo Leisink
19 September 2016, 10:57
It should be something like this.
UrlToolkit {
ToolkitID = redirect
Header Host ^ALTE-domain.de$ Skip 1
Header Host !^www.ALTE-domain.de$ Return
Match ^/(.*) Redirect http://www.NEUE-domain.de/$1
}
This topic has been closed.