Hope you are all well. I am not an expert but I am required to configure above two files for my website. I am hosting my site on 1and1.
Here is my current .htaccess field configuration --- AuthUserFile /kunden/homepages/45/d235104808/htdocs/Appssential/include/access/files/App/.htpasswd AuthGroupFile /dev/null AuthName EnterPassword AuthType Basic Require valid-user ---
Here is my htpasswd file configuration username:encrypted passwrod
---
But the thing is, it doesn't want to work and I just wondering if someone could guide me to set this up correctly?
What does "doesn't work" mean? Yes, I know that sounds like a hopelessly stupid question. But there are many many ways for htaccess not to work. The range is from "doesn't do anything at all" to "does something other than what I wanted" (be specific!) to "crashes the server".
The second bad news is that you're not allowed to link to your own site. When you need to post an example, use www.example.com to keep it from turning into a clickable link. People need to see what you really typed.
Start by explaining-- in English-- what you want to do. First figure out what you're doing. Then write the code.
But :: cough, cough :: as long as it's there, I followed the link. I got a popup box asking for my username and password, and when I made something up it didn't let me into the site. That seems to me like it's working. At least for a given definition of "working".