SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot blackberryfan's Avatar
    Join Date
    Nov 2010
    Location
    middleOnowhere, South Africa.
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can view my pages as www.anything.domain.com?

    Hi everyone,

    I noticed a strange thing today, the pages on my site can be viewed by typing either www.mydomain.com/folder/page.php or by typing http://www.absolutely-anything.mydom...older/page.php

    Why on earth can i view my pages through a subdomain that does not exist? These odd subdomains are showing up in google now.

    If anyone could help me out here that would be great, i suspect that i am lacking some kind of simple .htaccess command?

  2. #2
    SitePoint Zealot ChrisWiegman's Avatar
    Join Date
    Sep 2010
    Location
    Austin, Texas, United States
    Posts
    177
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You are using what is called a "wildcard domain." That is anything you use in front will resolve back to the main site. To fix this go to your DNS and tell it only to allow www and the root domain (you want to be able to work with both).

  3. #3
    SitePoint Zealot blackberryfan's Avatar
    Join Date
    Nov 2010
    Location
    middleOnowhere, South Africa.
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ChrisWiegman View Post
    You are using what is called a "wildcard domain." That is anything you use in front will resolve back to the main site. To fix this go to your DNS and tell it only to allow www and the root domain (you want to be able to work with both).
    Thanks Chris,

    I had to have a chat with my hosts tech support but managed to sort out the problem using the information you gave me.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •