I have a problem (besides my bad english):
I want to know the page you are requesting if you don't find the page you asked for.
I mean, if you type:
www.mysite.com/nonexistentpage.html
I can detect the problem (using .htaccess and a proper php script, let's say error404.php ) BUT I can not recover the original URL you asked for. The referer variable and all those say the error404.php is the origin.
Any idea about how do it?