Richard Parnaby-King Richard Parnaby-King - 1 month ago 5x
Apache Configuration Question

htaccess password protect but not on localhost

I have set up a dev site and want to password protect it so only validated visitors can view the site. All well and good. I am getting annoyed, on my local version, entering my username and password. So, without changing the htaccess file between my local copy and the one on the dev site, how do I password protect the site but allow myself access without having to enter my username and password?

Ben Ben

Something like this should do the trick..

Require valid-user
Allow from
Satisfy Any