Home » Htaccess Tools » Htaccess Questions  » Return 404's for domain no longer in use
Return 404's for domain no longer in use [message #1908] Wed, 07 July 2010 20:04
worm  is currently offline worm
Messages: 1
Registered: July 2010
Here's my exact situation.

I used to host a website with GoDaddy for one domain (let's call it 'old.com'). I removed that domain and specified the new domain (let's call it 'new.com') that I wanted to use and put a different website there (this is NOT a 301 question).

The new domain and site works fine, but it is taking some time for the DNS servers to realize that 'old.com' should not be pointing to the webserver that 'new.com' is now using although I've updated the DNS record.

I realize this will sort itself out when the DNS records propagate.

In the mean time, I want all requests to 'old.com' to return a 404.

How would I achieve this with .htaccess?

Thanks in advance!
Previous Topic:how to set up a rule that handles certain traffic
Next Topic:How to redirect http to https EXCEPT for a subdomain
Goto Forum:
  


Current Time: Sat Feb 4 03:30:07 CET 2012

Powered by: FUDforum 3.0.0.
Copyright ©2001-2009 FUDforum Bulletin Board Software