title: .htaccess show 404, 403, 500, error pages via PHP
body: <p>How can I make .htaccess display errors from a PHP file? I mean when I search a non-existing file .htaccess should show me an error page from error.php, but error.php needs a parameter with the error code.</p>
  
  <p><strong>NOTE:</strong> .htaccess should show the error directly on the current url without redirecting. Can I do this or it is impossible? Are there any other ways? </p>