How can I pass the 404\'d URL to my 404.html page using .htaccess
.htaccess
For example, if I visit an invalid page: /user/123
/user/123
RewriteEng
ErrorDocument is not part of mod_rewrite and that is invalid. Is this what your looking for?
ErrorDocument
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Rewriterule ^(.*) /404.php?error_path=$1 [R=301,L]