The below URL is an example of content-spoofing. I need to show my 404 page when I hit a URL like below:
Currently I see Apache's default error page as below:
The requested URL /you're are looking for was not found on this server Please visit this webpage to fix the issue (http://malicious.site.evil.com/. Again,the page was not found on this server.
I have tried adding RewriteCond in .htaccess. I have also tried adding the below
AllowEncodedSlashes NoDecode
at the end of httpd.conf file as mentioned in this.
But nothing seems to be working.
Can someone please help?
Update
Below is snippet of .htaccess
ErrorDocument 404 /404.html
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^ /404.html [L,R=404]