Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

posting again about .htaccess


Guest

Recommended Posts

I am posting this again as I still need answers to my questions....Please help!

Thanks

------------------------------------------------

Hi there. Well, I switched from a Windows server to a Linux server and the install was like a dream! Everything is working well and the store is coming along well.

 

I need help password protecting my files. I have read through the posts on this as well as visiting the apache web site. I have created an encrypted password and saved it as a .htpasswd file. I see that there is an htaccess file already in the Admin folder.

 

I don't understand what to do next. Where do I put the htpasswd file and do I create a new htaccess file or modify the one that is already in Admin? I am unable to password protect my files from my Control Panel and so I need to create/modify this htaccess file myself.

 

I just can't figure this out.

 

Please help.. Thanks!

Annabelle

Link to comment
Share on other sites

I am posting this again as I still need answers to my questions....Please help!

Thanks

------------------------------------------------

Hi there. Well, I switched from a Windows server to a Linux server and the install was like a dream! Everything is working well and the store is coming along well.

 

I need help password protecting my files. I have read through the posts on this as well as visiting the apache web site. I have created an encrypted password and saved it as a .htpasswd file. I see that there is an htaccess file already in the Admin folder.

 

I don't understand what to do next. Where do I put the htpasswd file and do I create a new htaccess file or modify the one that is already in Admin? I am unable to password protect my files from my Control Panel and so I need to create/modify this htaccess file myself.

 

I just can't figure this out.

 

Please help.. Thanks!

Annabelle

 

Hi there,

 

Basically you need to add some directives to your .htaccess file telling it to check credentials in your .htpasswd file.

 

.htpasswd can be anywhere. Outside your public html dir is probably a good choice.

 

The .htaccess file with the auth directive needs to be in the folder you want to protect.

 

Try ye olde htaccess generator to get an idea what it should look like.

 

HTH,

Iggy

Everything's funny but nothing's a joke...

Link to comment
Share on other sites

Hi there,

 

Basically you need to add some directives to your .htaccess file telling it to check credentials in your .htpasswd file.

 

.htpasswd can be anywhere. Outside your public html dir is probably a good choice.

 

The .htaccess file with the auth directive needs to be in the folder you want to protect.

 

Try ye olde htaccess generator to get an idea what it should look like.

 

HTH,

Iggy

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...