IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old July 13th, 2005, 10:28 AM
donkeyderby donkeyderby is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 5 donkeyderby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 59 m 43 sec
Reputation Power: 0
custom 404 page returns 200 staus code

Hi,

I have a puzzling problem that I need some help with. My website is hosted on an IIS server and uses a custom 404 error page. The site is hosted by an ISP who set the custom page up for me.

The page works fine and displays every time a non-existent page is requested, but the staus code shows as 200 and not 404...

Does this mean it hasn't been set up properly in IIS or is it something else? My 404 page is classic asp so I could the 404 header myself, but I'd like to know what is causing this.

Any ideas?

DD

Reply With Quote
  #2  
Old July 18th, 2005, 07:44 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,679 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 14 h 50 m 53 sec
Reputation Power: 688
Are you talking about the server logfile showing a 200 rather than a 404? Perhaps the fact that your custom page works gets the 200 into the log, but I really don't know much about custom error pages and how they interact with the http response codes.
__________________
======
Doug G
======
"Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton

Reply With Quote
  #3  
Old July 20th, 2005, 06:34 AM
donkeyderby donkeyderby is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 5 donkeyderby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 59 m 43 sec
Reputation Power: 0
Quote:
Originally Posted by Doug G
Are you talking about the server logfile showing a 200 rather than a 404? Perhaps the fact that your custom page works gets the 200 into the log, but I really don't know much about custom error pages and how they interact with the http response codes.


No, the logfile shows the 404 and my custom page is called and displayed correctly. When I check the headers using a tool like this one,

shttp://www.seoconsultants.com/tools/headers.asp

the status code shows as 200 OK and not 404. I think is this is causing search engines to hold on to a large number of pages that no longer exist on my site becasue they get a 200 code and not a 404 when they are requested.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > custom 404 page returns 200 staus code


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway