|
Yes, as suggested you can use the cPanel feature to do this. But I will assume that you want to do it manually or want to learn how to do it. I myself like to do things for myself but the choice is up to you.
If you want to do it manually:
1. Try typing it exactly as I have it there. I am also on a shared server so yours "should be" exactly like mine. Make sure the path is exactly like mine in the example above...
AuthUserFile /home/your-account-name/.htpasswd
Make sure that you replace your-account-name with your account name.
2. Then make sure that you create the .htpasswd file in plain ascii text. Use Notepad or equivalent.
3. Then make sure that you place the .htpasswd file in the location that the path above points to. That is in the main directory for your user account on the shared server that you are on. In other words the folder/directory above the public html folder where all your html files are.
4. When you save the file make sure that is ".htpasswd" and not htpasswd.txt or any other suffix at the end. It will not work unless it is exactly .htpasswd
__________________
SH100 , SH131 & SH124
|