# ErrorDocument 404 /a/error.php

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) error.php [L]
