Click here to Skip to main content
13,001,686 members (92,240 online)
Rate this:
Please Sign up or sign in to vote.
See more:

My site is: and I am facing some problems on it for about 2 months now.

Occasionally, when I type my site's address without the "www" [] I am redirected to a strange page filled with advertisements.

However the correct site loads if I type the "www" [] the page loads properly:
Screenshot 2:[^]

I have had this site for a long time now, and have never faced this problem.

This is my htaccess file:[^]

My hosting provider is
I contacted them but they could not identify the problem.
My domain name registrar is
Even they could not identify the problem.

This happens on my PC, my friend's PC and my PC at work, so I don't think it's a malware or virus issue with a particular computer. I cant figure out why is this hapenning, is it a DNS issue, domain name issue, server/ host issue?
The server is a linux based one.

Please tell me what I need to do to resolve this and why is this hapenning?
Posted 24-Sep-12 0:10am
Updated 24-Sep-12 0:35am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

It's probably a virus \ malware on your machine.

A sneaky way some malware work is to register additional DNS servers that areresponsbile for serving up malicious content, such a advertising or more malware infected sites. DNSChanger was a well known malware that done exactly this,[^]

Because they are registered alongside your 'normal' DNS, you get erratic results - sometimes you see the correct content, sometimes you see the malicious content.

Maybe follow the instructions in that article to see if you have any rogue DNS entries, you can achieve similar through cmd->ipconfig /all

Run a full malware scan as well. Malwarebytes [^] is my favourite for this.
Shaunak De 24-Sep-12 6:30am
This happens on my PC, my friend's PC and my PC at work. So I think a virus problem is not likely. I am following the article anyway.

PS: Is it correct for you?
Dylan Morley 24-Sep-12 6:35am
ah OK, I updated your question to include that info.
Shaunak De 24-Sep-12 6:38am
Thanks :)

Maybe its an issue with the ISP's DNS?
Shaunak De 24-Sep-12 6:33am
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.


Non-authoritative answer:


^^ The above IP is correct
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

This was probably caused because the DNS records were not set correctly. It was accidentally set to "" instead of

Correcting this seems to have resolved the issue

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170624.1 | Last Updated 25 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100