Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a website in which the home page redirects to a different site, which is also from me. I tried getting on it yesterday and then, it was fine. But now, this evening, when I never touched a thing, it keeps me redirecting to the other site of mine, which is not what I want of course.

What the hell goes wrong? It has frustrated me, because I was planning to go live today. Can someone help me out please? I checked all the plugins, index.php, .js files and searched all of the files to see if there is a hardcoded link, but without success. Besides, I have checked my database and there I could not find a thing to.

PS: only the homepage redirects. Other parts of my website like /contact does not redirect.

share|improve this question

closed as off-topic by kaiser, toscho Jul 12 '13 at 3:55

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers 2

I'm guessing that your Wordpress Address URL or your Site URL (both under Settings> General) are incorrect. You can find them in your database in the options table option_name siteurlor home. You might have overwritten the original settings while importing your database from a local server or something.

share|improve this answer
Nope. I checked that and they are both correct. It was Google Adsense, but I don't know how and why. – Johan Jul 7 '13 at 10:57
I would suggest contacting them and asking. Sounds annoying. – mantis Jul 7 '13 at 11:01
Yes, indeed. Going to do that eventually, I guess. Thanks mantis. – Johan Jul 7 '13 at 11:24
Or you could format the question differently and ask it in StackExchange tagged Adsense. You're probably not the only one ;) – mantis Jul 7 '13 at 11:31

Google Adsense was the problem. They redirected me when they could not find an ad to show and that was the URL I stated on the Adsense page. Problem solved.

share|improve this answer

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