apache - .htaccess Redirecting All Errors to a PHP file with GET variable -


i'm trying figure out how redirect errors pages redirect to/error.php?e={error here}.

for example, if user encountered 404 error, directed /error.php?e=404.

is there possible way of doing this?

you can use apache error document config. here more info

http://httpd.apache.org/docs/2.2/custom-error.html


Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -