Editing .htaccess - Password Protection
Hey!
I want to create a Vanilla forum which is only available for a small group of people. My plan is, that others shouldn't be able to see the forum at all.
So I tried to modify the existing .htaccess with the following code:
AuthType Basic
AuthUserFile /html/forum/.passwd
AuthName "Protected"
order deny,allow
allow from all
require valid-user
In addition I created the .passwd file with:
user:encryptedpassword
When I now want to access the forum the correct form appears, but when I want to log in there's error 500.
It was the first time I tried to modify the .htaccess, I've never done that before. Is there a problem with Vanilla or the existing part of the .htaccess with my additions? Or it's just my fault cause of mistakes in the code above?
Hope you can help me!
Best Answer
-
x00 MVP
This is not necessary. .htaccess is fairly unforgiving, so if you don't get the rules 100% right it can error.
Check out the private community plugin.
grep is your friend.
1
Answers
This is not necessary. .htaccess is fairly unforgiving, so if you don't get the rules 100% right it can error.
Check out the private community plugin.
grep is your friend.