Jason Siffring’s .htaccess File for Protecting Staging Sites
Jason Siffring posted the .htaccess file he uses that password protects his development environments, while not affecting the live site. Since the file is version controlled, it is the same across all environments. His .htaccess file however, only password protects the appropriate environments.