Password protect directory or folder in wordpress installed directory
How to password protect a directory or files within WordPress installed directory? To do this, you need to create a file named 401.html and edit the .htaccess file in the password protected directory. Create the 401.html file in a separate directory (or in root directory) than the password protected directory. In this case I created More