• i have a site that is under attack by hackers trying to inject things by trying missing files like so:

    /function%20detect(iterator,%20context)%20%7B%20%20%20%20va
    /function%20inspect()%20{%20%20%20%20return%20′[‘%20+%20thi
    /function%20intersect(array)%20%7B%20%20%20%20return%20this

    i am thinking there was a hack at one time that i have removed but the 404 errors are taking up a lot of resources because of the way wordpress handles them. is there a way to take wordpress out of the equation completely so that my server can handle 404 errors directly?

Viewing 1 replies (of 1 total)
  • Same hacker wars here. Where thinking of “WP Super Cache” to temporary fix server overload issue. But found a solution.

    1. Add to your .htaccess folowing line BEFORE wordpress code:
    ErrorDocument 404 /index.php?error=404

    2. Place plain text 404 html page to your current theme folder and name it 404.php (does not mater it’s not PHP).

    Well, wordpress involved somehow, but 404 returns plain HTML 404 page instead of wordpress compilation with 404 message.

Viewing 1 replies (of 1 total)
  • The topic ‘how to stop wordpress from handling 404 errors’ is closed to new replies.