Recently I had a website that was getting hammered with traffic. Every hit on the website requires multiple MySQL SELECT statements. While SELECTs are typically quite fast, the database in question has several million records. Upgrading hardware isn’t an option for this website right now, and disabling the account is far from the best solution. The situation demanded a way to set a hard limit on MySQL requests for an individual user account.
Tag Archives: apache
Most websites have both a www and non-www version of the domain name, but typically they both show the same thing. If you’re concerned about how search engines are viewing your website, or just want to maintain a consistent URL for all users, you can automatically redirect visitors to the non-www version of your domain name (and vice versa).