The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Random Fake Subdomains Redirect To My Index (3 posts)

  1. RandomWhim
    Posted 9 years ago #

    It's not just http://www.mysite.com that goes to my WordPress index, anything else works too (random.mysite.com, asdfg.mysite.com, etc). I've searched the forums for something else like this, but I can't find any advice for how to make such erroneous reqeusts to go to a 404 page.

  2. pozmu
    Posted 9 years ago #

    Well, it's not WordPress related. Just look at this example: free porn | free porn - this two link will take you to the same website. Why? 1. Domain configuration at DNS server - domain is configured as "wildcard" so anything.yourdomain.com will lead to your server 2. Server is configured so that it will take anysubdomain.yourdomain.com request and show your main page.
    How to disable it? You should be able to do this in control panel of your hosting account. If you can, ask your ISP. It may be possible to redirect such request to other page (e.g. mentioned 404) by using some server-side script, but it isn't really a good solution.

  3. RandomWhim
    Posted 9 years ago #

    Thank you very much, pozmu! I could have spent hours messing around with WordPress files and configs. I'm very glad to know it's my DNS Zone with my hosting company. Cheers!

Topic Closed

This topic has been closed to new replies.

About this Topic