I want put some codes like below in my htaccess file:
ErrorDocument 403 /error/403
ErrorDocument 404 /error/404
ErrorDocument 500 /error/500
...
and have a PHP file which handles the error pages for me using GET ( file.php?a=404 ).
Now, I only need a htaccess code to rewrite the "/error/404" to "file.php?a=404" for me. What should I do ?!