Hi, so what i am trying to do is this: If someone types in an invalid url of my domain (eg: mydomain.com/place-that-doesnt-exist) I want the user to be redirected to the index page where a message says "you tried to go to mydomain.com/place-that-doesnt-exist but there is no page there. It is important that I know the exact url that the user tried to go to.
What I have already tried: I made a .htaccess file that redirects 404s and then tried to use javascript to pick up the referer. It didnt pick up anything
I am posting in php because there is no section on htaccess and maybe php has something to offer me here. Thanks in advance,
Dave