How can I pass the 404'd URL to my 404.html page using .htaccess
For example, if I visit an invalid page: /user/123
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
ErrorDocument 404 /?404.php?error_path={???}
^
=========================================^
Resulting in a 404 redirect to /404.php?error_path=/user/123
ErrorDocumentis not part of mod_rewrite and that is invalid. Is this what your looking for?