Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to force 404 for domain 2

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
Hello,

I'm trying to remove my site from Google so I can set it up correctly with a redirect and get the one domain indexed.

Only for the site removal request to work I need to create a 404 error.

I've removed the site from IIS but if you try to go to the domain it returns a 400 error.

how do I force a 404 for a given domain so I can instigate the site removal from google.

thanks, 1DMF

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
that was too obvious, it's stupid!


D'oh!

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
however , that just gives a 403!

so now what?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
What if your site has only one page: default.asp

Code:
<%
response.Status = "404 Not Found"
%>
 
Thanks Sheco,

I'd actually worked this out eventually myself and all is fine.

The site is removed and I now have a proper redirect set up.

Let's hope google likes that better that the old set up!



"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top