I have a problem regarding redirection.
It started out as I noticed, my non-www version is redirected to the www version by 302 redirect. Since then, I am trying to figure out why this is happening. I'm using WordPress 3.3.1. The htacces contains the correct, but it seems to be ignored. (At least if I change the RewriteRule to a completely different tld, nothing happens.)
I tried adding
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} !^(www\.|$) [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
and I tried using the explicit version putting in the URL (www.dreadfactory.de by the way).
While trying to narrow down what the source of this error may be, I discovered, that every link starting with the non-www version is redirectet via 302 to the root www version. So if I call dreadfactory.de/angebot
it redirects to www.dreadfactory.de
.
I deactivated every plugin, one by one, and I changed themes. I updated / reset the WordPress permalink stuff and I tried A LOT of different htaccess versions, but the error still remains the same: a 302 redirect where ther should be a 301 redirect.
Since this page is the only page in my webpackage (Hosteurope) with a subdomain, my theory was that maybe the hoster has some differences in his serversetting for domains with subdomains that are not compatible with something I'm doing, but even after deactivating subdomains, the problem still remained.