I've already tried support tickets, they advised I posted a thread here so here goes nothing.
For the past week now, I've been trying to design a .htaccess file which limits access to a page using user:pass authentication, however whenever the dialog pops up asking for the credentials, I enter them in all correctly, it sends me to an Error 500 page.
order allow,deny
allow from all
require valid-user
Authname "SECURE AREA - AUTHORIZATION NEEDED"
Authtype Basic
AuthUserFile /usr/www/REDACTED/REDACTED/.htpasswd
Two things redacted to keep the file location and such safe.
Your .htaccess syntax looks correct. If you're getting a 500 error then either the path to the .htpasswd file is incorrect or the .htpasswd file is malformed. Most commonly on our hosting I see customers omit the /public/ folder when specifying the path, ensure you're including this in yours if you're using our default domain path.
Included /public/ and now's it's coming up with the dialog, now here's a new issue that's seemed to pop up.
I've made a test user, specifically for doing this.
It pops up with the dialog as it should, I can enter details and press OK fine, without being redirected to an Error 500, however it doesn't accept the credentials supplied in the .htpasswd file.