[LOSTWAGES] fix .htaccess

Jonathan Ernst Jonathan at ErnstFamily.ch
Wed Nov 2 04:26:34 CST 2005


Note that when you specify an ErrorDocument that points to a remote URL
(ie. anything with a method such as "http" in front of it), Apache *will
send a redirect to the client to tell it where to find the document,
even if the document ends up being on the same server*. This has several
implications, the most important being *that the client will not receive
the original error status code*, but instead will receive a redirect
status code. This in turn can confuse web robots and other clients
which try to determine if a URL is valid using the status code.

I was using linkchecker (http://linkchecker.sourceforge.net/) to check
for deadlinks and wondered why some people could still find some
deadlinks on winehq. That's because our 404 handler doesn't send an
Error 404 message to the user agent.

This change will make apache send a 404 instead of a redirect and will
let the original address in the browser's address bar instead of
changing it to the /site/404 file. It will also make it easier to check
for deadlinks as the error code will be correct now.


 - fix ErrorDocument directive

-------------- next part --------------
A non-text attachment was scrubbed...
Name: htaccess.patch
Type: text/x-patch
Size: 547 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051102/f21832cd/htaccess.patch

More information about the wine-patches mailing list