I created a .htaccess and .htpasswd in my htdocs directory in order to password protect my website. I generated the .htpasswd file using this
my .htaccess file is as follows
AuthName “Login To The Wiki”
AuthType Basic
AuthUserFile /.htpasswd
Require valid-user
However, when I access my website and enter in my login info, the page redirects to the 500 error page. What is causing this and how can I help fix this?
So you see a HTTP ERROR 500 page after you’ve logged in? That sounds like the password protection is working just fine, but your website code itself is breaking.
I should’ve specified this, my apologies. When I have password protection disabled and the default .htaccess file the website works totally fine. However when I have my custom .htaccess and .htpasswd files the website redirects to the 500 error page after logging into the website, I changed none of the code of the actual site outside of the .htaccess and .htpasswd files.
Hmm, I don’t know what could be causing that. But could you please answer the questions of the topic template so it’s easier to start looking for causes?