Forum

SEO 301

Max
6 September 2014, 18:44



Hiawatha version: 9.7
Operating System: CentOS 6.5

    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]

rewrite rules in hiawatha ?

thanks
Hugo Leisink
6 September 2014, 18:56
Header Host !^ALTE-domain\.de$ Skip 1
Match ^/(.*) Redirect http://www.NEUE-domain.de/$1
Header Host !^www\.ALTE-domain\.de$ Skip 1
Match ^/(.*) Redirect http://www.NEUE-domain.de/$1

Be aware, I haven't tested it.
This topic has been closed.