• Welcome to DNForum.com - Domain Investor Forum, Free Domain Marketplace and a community for 45k+ domain pros
    If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the oldest global domain name community on the internet and continues to grow every day. There are over 45,000 domainers on DNForum doing everything from buying domains, selling domains, using our free in-house built tools, learning about domains and discussing domains. Take a minute and Register.

Anyone know how to 404 a subdomain?

Status
Not open for further replies.

Spider

New Member
The Originals
Legacy Platinum Member
Joined
Apr 9, 2003
Messages
1,578
Reaction score
0
I recently picked up an expired domain that had a lot of subdomains used from the previous owner. My .htaccess files has the normal 404 error code one but that doesn't seem to work for a subdomain. Can anyone tell me how to do it?


Thanks.
 
Originally posted by jh3
I recently picked up an expired domain that had a lot of subdomains used from the previous owner. My .htaccess files has the normal 404 error code one but that doesn't seem to work for a subdomain. Can anyone tell me how to do it?


Thanks.

Why don't you wildcard the domain?

As in the DNS do a *.domain.com to the ip address of your main website, that way all traffic will go there, and in apache add server alais *.domain.com in the http.conf or Vhost.conf which ever your server uses
 
ok thanks, I will see if that's possible with my server. It's managed so it might be something I have to ask to have setup.
 
If you're domain name is registered with eNom, you might be advised to do it through their DNS controls. Your hosting service may charge extra fees to do this.

~ Nexus
 
I have a managed dedicated server, it's all included. :)
 
Status
Not open for further replies.
Back
Top Bottom