Following is the content of .htaccess file if any user wants to protect it from outside network but not in the home network.
So it asks password for outside LAN but does not ask in the LAN
AuthName "Password Protected Area"
deny from all
allow from 192.168.2.
But you want it little different. You want that it should not ask password from anywhere.
If there is .htaccess file in your project, please modify according to your requirement.