Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

htaccess - htpasswd


steliart

Recommended Posts

I am new in this so sorry for the ignorance.

I tryed to protect my "admin" and so i made the following:

 

htaccess in a txt file I typed something like this

 

AuthUserFile /home15b/sub001/sc17388-CZLB/catalog/.htpasswd

AuthGroupFile /dev/null

AuthName admin

AuthType Basic

Require valid-user

 

htpasswrd in a txt file I typed something like this, after generate

 

myname:$1$jU1Ooolq$cBDFZtuJFe9LENffDp/oW1

 

When I tried to access my admin the password pop-up window is asking me for the username and paswword but it does not take me there, if something is incorrect.

 

Please can you tell me where I'm I wrong?

 

Thanks

Love & Light

Link to comment
Share on other sites

Your webhost should have a "password protect directories" area in their control panel. May be easier than what you are trying. htaccess can be a pain. If not, there are many contributions to protect the admin area.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Your webhost should have a "password protect directories" area in their control panel. May be easier than what you are trying. htaccess can be a pain. If not, there are many contributions to protect the admin area.

 

Thank you for the reply.

 

Unfortunetely my webhost do not have "password protect directories" they sudgest htaccess the way i did it :(

 

About contributions: Do you know one that will work?

Love & Light

Link to comment
Share on other sites

Thank you all for the help :)

I have solved the problem

 

htaccess

I kept the normal slash (no backslash) in the path for the htpasswd

 

htpasswd

I generated the password in my servers tool and not on an internet one.

I moved the file out of the www folder

 

It worked for me

 

Thank you all for the help

Love & Light

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...