4 ms·
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 w
by blhack 16y ago
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.