I am writing one web application using PHP/CodeIginter.
Now, I want to add a .htaccess while I am upgrading the application in the server. The purpose of this .htaccess will be: -
It'll allow normal operation if the user is accessing
- from some specific IPs, and
- Using a particular host name alias
- has a query string parameter "upgrading=1" in the URL
Otherwise, it'll show a message: "site is under construction".