I tried looking at similar questions on here, but they didn't encounter a problem similar to mine on FileZilla.
I create a .htaccess
file and .htpasswd
, put it into the folder with all my files, and when I go onto the public host server site with all the directories, my one becomes completely invisible. I want it to be visible, but I need it to prompt for a username and password. Here is the code I used:
.htaccess
AuthType Basic
AuthName "Password Restricted Area"
AuthUserFile http://domain_name_of_server/2015/student_number/name_of_directory_folder/.htpasswd
require valid-user
.htpasswd
layout:
My_username:generated_password
What could the problem be making it invisible? And how could it be fixed so it prompts for a password?