Skip to main content
Formatting, grammar.
Source Link
MrWhite
  • 43.3k
  • 4
  • 51
  • 90

I have created a .htpasswd.htpasswd file using htaccess tools of which I have uploaded to the root of my web hosting space (/public_html/public_html is my web root).

I created a .htaccess.htaccess file which referenced the .htpasswd.htpasswd as follows:

AuthType Basic
AuthName "Protected Area"
AuthUserFile /.htpasswd
Require valid-user

However, when I uploaded this .htaccess.htaccess file to the directory I want to password protect accessingand accessed the folder via the URL in my browser it returns a 500 internal server error. II have used this same method before successfully.

Am I referencing the .htpasswd.htpasswd file incorrectly? II also uploaded it to /public_html//public_html/ in case .htaccess.htaccess interprets // as the web root, but the error remains.

Any ideas what is wrong?

I have created a .htpasswd file using htaccess tools of which I have uploaded to the root of my web hosting space (/public_html is my web root).

I created a .htaccess file which referenced the .htpasswd as follows:

AuthType Basic
AuthName "Protected Area"
AuthUserFile /.htpasswd
Require valid-user

However when I uploaded this .htaccess file to the directory I want to password protect accessing the folder via the URL in my browser returns a 500 internal server error. I have used this same method before successfully.

Am I referencing the .htpasswd incorrectly? I also uploaded it to /public_html/ in case .htaccess interprets / as the web root, but the error remains.

Any ideas what is wrong?

I have created a .htpasswd file using htaccess tools of which I have uploaded to the root of my web hosting space (/public_html is my web root).

I created a .htaccess file which referenced the .htpasswd as follows:

AuthType Basic
AuthName "Protected Area"
AuthUserFile /.htpasswd
Require valid-user

However, when I uploaded this .htaccess file to the directory I want to password protect and accessed the folder via the URL in my browser it returns a 500 internal server error. I have used this same method before successfully.

Am I referencing the .htpasswd file incorrectly? I also uploaded it to /public_html/ in case .htaccess interprets / as the web root, but the error remains.

Any ideas what is wrong?

added 3 tags and a little grammar.
Source Link
Simon Hayter
  • 33.1k
  • 8
  • 60
  • 120

I used http://www.htaccesstools.com/ to createhave created a .htpasswd file, using htaccess tools of which I have uploaded to the root of my web hosting space, where (/public_html is my web root).

I created a .htaccess file which referenced the .htpasswd as follows:

AuthType Basic
AuthName "Protected Area"
AuthUserFile /.htpasswd
Require valid-user

However, when I uploaded this .htaccess file to the directory I want to password protect, and then loaded accessing the directory with it'sfolder via the URL, I received in my browser returns a 500 internal server error. I have used this same method before successfully.

Am I referencing the .htpasswd incorrectly? I also uploaded it to /public_html/ in case .htaccess interprets / as the web root, but the error remains.

Any ideas what is wrong?

I used http://www.htaccesstools.com/ to create a .htpasswd file, which I uploaded to the root of my web hosting space, where /public_html is my web root.

I created a .htaccess file which referenced the .htpasswd as follows:

AuthType Basic
AuthName "Protected Area"
AuthUserFile /.htpasswd
Require valid-user

However, when I uploaded this .htaccess file to the directory I want to protect, and then loaded the directory with it's URL, I received a 500 internal server error. I have used this same method before successfully.

Am I referencing the .htpasswd incorrectly? I also uploaded it to /public_html/ in case .htaccess interprets / as the web root, but the error remains.

Any ideas what is wrong?

I have created a .htpasswd file using htaccess tools of which I have uploaded to the root of my web hosting space (/public_html is my web root).

I created a .htaccess file which referenced the .htpasswd as follows:

AuthType Basic
AuthName "Protected Area"
AuthUserFile /.htpasswd
Require valid-user

However when I uploaded this .htaccess file to the directory I want to password protect accessing the folder via the URL in my browser returns a 500 internal server error. I have used this same method before successfully.

Am I referencing the .htpasswd incorrectly? I also uploaded it to /public_html/ in case .htaccess interprets / as the web root, but the error remains.

Any ideas what is wrong?

Source Link
Steve
  • 1.4k
  • 4
  • 19
  • 38

.htaccess password protection generates 500 internal server error

I used http://www.htaccesstools.com/ to create a .htpasswd file, which I uploaded to the root of my web hosting space, where /public_html is my web root.

I created a .htaccess file which referenced the .htpasswd as follows:

AuthType Basic
AuthName "Protected Area"
AuthUserFile /.htpasswd
Require valid-user

However, when I uploaded this .htaccess file to the directory I want to protect, and then loaded the directory with it's URL, I received a 500 internal server error. I have used this same method before successfully.

Am I referencing the .htpasswd incorrectly? I also uploaded it to /public_html/ in case .htaccess interprets / as the web root, but the error remains.

Any ideas what is wrong?