PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
horrorcode
Involved
Involved


Joined: Jan 17, 2009
Posts: 268
Location: Missouri

PostPosted: Thu Apr 09, 2009 8:14 am Reply with quote Back to top

Im not sure if this has been discussed before, tried searching but couldnt find much.

Maybe its just me, but when someone gets a 404 error it returns a 200 status.

Example:

Code:

ERROR: 404 - Page Not Found
   
The file requested was not found
Hint: Verify that the file exists - Filenames are usually case sensitive - Check for spelling errors

Your IP : ******
Page Requested : /modules.php?name=ErrorDocuments&file=404&rs=file.html
Agent : Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081217 K-Meleon/1.5.2
Redirect Status : 200


This is with RN 2.3.0.1 and the only thing I checked is the htaccess and thats exactly as it is in the install.

Is there a solution for this? I ask because certain crawlers return errors on the redirect status.
View user's profile Send private message Visit poster's website MSN Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Thu Apr 09, 2009 11:53 am Reply with quote Back to top

Not sure I'm understanding your question/issue. Here's the way it works regardless of whether it's a crawler or a human.

* A page is requested
* The server/browser issues a 404 return code if page is not found
* The ErrorDocument Apache directive redirects it to a more friendly url
* The server/browser issues a 200 return code because the redirect url is found

Does that help?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
horrorcode
Involved
Involved


Joined: Jan 17, 2009
Posts: 268
Location: Missouri

PostPosted: Thu Apr 09, 2009 12:10 pm Reply with quote Back to top

Yes, I totally understand that, let me be more specific.

When trying to apply for a service, the service requests verification of ownership. One service would be SiteAdvisor, which then gives this error message:

Quote:

It appears that the Web site horror-code.com is returning an HTTP 200 status response code in the header of 404 pages.

We cannot verify a Web site that is configured this way because it allows anyone to verify themselves as the owner of your site. Please update your Web site server configuration to return 404 status codes in the headers for pages that do not exist. Once your site is configured this way then you can return and request a file name verification.


For these services would it be wiser for me to remove the redirects during verification, or is there a workaround?

Thanks again.
View user's profile Send private message Visit poster's website MSN Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Thu Apr 09, 2009 12:41 pm Reply with quote Back to top

Probably. That's an interesting issue I never considered because the issue to be resolved was user/theme friendly pages. I'll have to check the headers that Apache sends when they use their standard error pages.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
horrorcode
Involved
Involved


Joined: Jan 17, 2009
Posts: 268
Location: Missouri

PostPosted: Fri Jun 05, 2009 4:40 pm Reply with quote Back to top

Just wanted to note that Goole WebmasterTools site verification returns this error as well, but only after I had removed the verification and reinstated it. I think it would work the same once I remove the redirects, but just wanted to put it out there, as I might forget...Smile
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum