News for hackers. Stuff that matters.
Re:Surviving a traffic surge: Three techniques to scale your... by blhack on Tuesday March 29, 2011 @12:57PM (#2383381)
One [probably naive] thing that I've done in the past has been to use mod_rewrite to redirect people to a static version of a page.

Something like this would work in .htaccess

RewriteRule ^t/item/4372/$ /static/4372.html

It's saying "Hey, apache, if you see somebody asking you for website.tld/t/item/4372/, send them to website.tld/static/4372.html instead"

A blog post I wrote got about 100k hits in a day a few weeks ago, and using mod_rewrite in this fashion, I was able to keep the site running for the entire day.

There are no comments on this comment yet.