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 Go to next message
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!
Re: Return 404's for domain no longer in use [message #1915 is a reply to message #1908] Thu, 08 July 2010 22:05 Go to previous message
HungryMind  is currently offline HungryMind
Messages: 14
Registered: July 2010
Hi!

If U'll Use This Command In http://old.com's .htaccess File! Then It'll Redirect Old To New.

Here Is The Code:
ErrorDocument 404 http://new.com/

But! U'll Have To Delete All Files To http://old.com For Appling 404.

Thnx & Regards: Hungry Mind

http://hungrymind.tk/
Previous Topic:cookie authorization to restricted folder based on timestamp
Next Topic:Help with .htaccess
Goto Forum:
  


Current Time: Mon Sep 6 10:33:35 CEST 2010

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