Endlich, nach langem Rumprobieren und Durchforsten des Internets scheint es jetzt zu klappen:
The working htaccess is:
Code: Select all
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteBase /
RewriteRule ^(.*)$ http://www.sachverstand-bauhandwerk.de/$1 [R=301,L,NE]
RewriteCond %{REQUEST_URI} /index\.php
RewriteRule ^index\.php / [QSA,L,R=301,NE]
The important items are "RewriteCond %{HTTP_HOST} !^www\. " otherwise there'll be an infinite loop trying to rewrite
and NE, as there are some öäü in the Pageheadings.