Can anyone help me make a custom error page with a log?
I am currently using the .htaccess file to handle redirections:
Example1: ErrorDocument 404 http://example.com/error/?code=404
but for some reason it does not work using relative layout such as:
Example2: ErrorDocument 404 /error/?code=404
My .htaccess file is located in the www or public_html directories. When I try to access a 404 page while I use example 1 it automatically redirects to the url.
Is there any way to stop the redirection. I don't want the error to redirect because it will make it harder to trace where the visitor was when the 404 page was encountered. I would like to stay away from referers because I think it is possiable for people to send false or blocked referer.
Is there any alternative way to have custom error pages with the url unaltered?


LinkBack URL
About LinkBacks
Reply With Quote


