: WordPress redirection chaos 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
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 ^ 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 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.
More posts by @Candy875
1 Comments
Sorted by latest first Latest Oldest Best
Check the DNS entries, it could be that your host configured your DNS in an unusual way.
What happens without any htaccess in place?
//update
In this case it turned out that Marvin's naked domain and www domain were pointing at different ip's or servers adjusting the DNS settings in the ISP's control panel solved the problem.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.