You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Rovi <ro...@yahoo.com> on 2006/01/13 10:44:47 UTC
Not return a status of 200 in the header of 404 pages
How can I change the config such that for pages that should normally return
404 status, 404 status IS returned, and not 200?
Thanks much!
[Lenya 1.2.4 on Jetty]
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Not return a status of 200 in the header of 404 pages
Posted by Rovi <ro...@yahoo.com>.
Josias Thoeny <josias.thoeny <at> wyona.com> writes:
> <map:parameter name="statusCode" value="{statusCode}"/> to <map:parameter
>name="parameter-selector-test" value="{statusCode}"/>
Thanks Josias! It helped.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Not return a status of 200 in the header of 404 pages
Posted by Josias Thoeny <jo...@wyona.com>.
On Fri, 2006-01-13 at 09:44 +0000, Rovi wrote:
> How can I change the config such that for pages that should normally return
> 404 status, 404 status IS returned, and not 200?
> Thanks much!
I think this is a bug in Lenya 1.2
Try to change
<map:parameter name="statusCode" value="{statusCode}"/>
to
<map:parameter name="parameter-selector-test" value="{statusCode}"/>
in publication-sitemap.xmap of your publication (around line 40).
hth,
Josias
> [Lenya 1.2.4 on Jetty]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org