Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

.htaccess and/or .htpasswd problems


sincityharley

Recommended Posts

Posted

OK for the life of me I cant figure out what I am doing wrong. I am trying to password protect a section of my site. I have the following files uploaded via ftp to my cox cable website.

 

.htaccess

AuthName "Members Only"

AuthType Basic

AuthUserFile /sincityharley/login/info/secure/.htpasswd

Require valid-user

 

.htpasswd

bob:J1ImmCJMIIKZo

 

password being: doe

 

when I try to login and view my protected page it will prompt for username and password. I will put in my user name and when I put in my password and click ok it still prompts for my username and password again and again, never letting me in to my password protected page. Any help with this would be greatly appreciated

Posted

I think this line is probably your problem:

AuthUserFile /sincityharley/login/info/secure/.htpasswd

 

I believe you need to give that the full path to the file. You can find out what the full path is by looking at your modules screen in the admin - that will give you the module path. From there I'm sure you can figure out what needs to be removed and added.

Chris Dunning

osCommerce, Contributions Moderator Team

 

Please do not send me PM! I do not read or answer these often. Use the email button instead!

 

I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...