阿帕奇改写为404:获取请求的URL

问题描述:

在我的错误页面,我重定向到任何404,我想记录用户试图查看网址。

On my error page that I redirect to for any 404s, I'd like to record the url that the user tried to get to.

我试过这个,但它不工作:

I've tried this but it doesn't work:

的ErrorDocument 404 /错误/?URL =%{HTTP_REFERRER}

谁能告诉我该怎么办呢?

Can anyone tell me how to do it?

这似乎没有一种方式。