Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I just posted this in the webmaster section before discovering this wordpress section, so sorry for the double post. :X 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.

share|improve this question
In Settings->General, what are your Wordpress and Site URL set to? – m0r7if3r Jan 31 '12 at 0:44
Both are set to to "www.dreadfactory.de". – Marvin Pollock Jan 31 '12 at 0:51

closed as too localized by toscho Aug 1 '12 at 23:35

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

2 Answers

If you don't want the www. in your links, drop it from Site URL and Wordpress URL in Settings->General, also make sure your settings in Settings->Permalinks are correct, do not include your URL there, it should be something like /%postname%/

share|improve this answer
Sorry if that came out wrong, I WANT to have the www. version. The wordpress setting are correct (deleted the htaccess, reset the options and went back to the /%postname/ form again) But something seems to obscure the redirection process. – Marvin Pollock Jan 31 '12 at 1:07

Problem solved. The DNS entries were messed up.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.