Catching requested URL on error
Is there any way to catch requested URL on error ?I meant, I need to redirect ErrorDocument 403 to a script/html. And in that script/html, I would like to tell the user that the URL they were requested is forbidden or noindex.
I can detect their IP address from REMOTE_ADDR variable, but how can I detect the requested URL ?
I use perl / php, the error 403 redirection is done, but I need to detect the requested URL.
Any idea ?