“Spoofing” a 404 not found error with .htaccess
snippet in htaccess

“Spoofing” a 404 not found error with .htaccess

user2958

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ (/.*)\.php
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_URI} !^/error\.php
RewriteRule . - [R=404,L,NS]

ErrorDocument 404 /error.php?e=404