Test, test and test again. You can automate those tests with a TestServer-based Web app that doesn't even touch the Web server.