Customerror sends incorrect HTTP response code

subdian - March 18, 2009 - 10:16
Project:CustomError
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Custom error is very useful for customizing the error pages, but shouldn't the error page be sent with the original response code (i.e. 403 or 404) instead of 200, which it currently sends?

By sending an HTTP 200 code, the search engines will still think its a valid page, and will index a customized error page for an incorrect URL.

#1

kbahey - March 18, 2009 - 14:22

Yes.

Do you have a patch that fixes this?

#2

subdian - March 19, 2009 - 10:53

I'm afraid I don't. But I would sure like one :-)

I could take a look... I'd imagine it can't be that difficult

#3

kbahey - March 19, 2009 - 16:11
Version:5.x-1.1» 6.x-1.x-dev
Status:active» fixed

I put in a fix for the 5.x-1.x-dev and 6.x-1.x-dev versions of the module.

It should be available in about 9 hours in the tarball.

Please test that version tomorrow.

#4

toemaz - March 22, 2009 - 20:14

Tested with the dev release for D5 and confirms that it works fine. Perhaps you can make a new release?

#5

kbahey - March 22, 2009 - 20:34

New stable releases created for 5.x and 6.x.

Should appear shortly on the project page.

#6

System Message - April 5, 2009 - 20:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.