[wp-hackers] cheap 404 serving
"Matthias P. Würfl"
mpw at taquiri.de
Tue Oct 16 11:04:30 UTC 2012
404s are expensive. There are several circumstances where a lot of
avoidable 404-errors must be generated by wordpress:
- bots trying to find security flaws
- disappeared static files (images)
All the rewrite-rules i can find send every request that cannot be
served as static content to wordpress. It would be cheaper to check the
request if handeling by wordpress makes sense at all before wordpress is
- URL ends on ".html" or "/"
- Accept-header contatins "text/html"
- ... (more?)
I serve static content with Nginx, i cache the results of
fastcgi-requests, so i'm kinda prepared for accidential DOS-attacks (cat
sitting on [F5] key) in these cases, but these 404 errors are still
Are there any ready-to-use recipes to serve 404 errors cheaper? For
More information about the wp-hackers