Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

One question about .htaccess


hanhthu

Recommended Posts

Posted

Dear Support Team,

Can anyone show me what is role of .htaccess file? if I want to set password for my directory, what should I do?

Thank a lot

... Financial Freedom ...

Posted

there are many threads on this as well as contributions. search contributions for htaccess

Posted

but beware of actual setting in the .htaccess as at least one cont. delivers following .htacces-code :

Deny from all

Options All

AuthType Basic

AuthUserFile /PathToYourFolderwithPasswordfile/

Require valid-user

AuthName "admin"

Satisfy any

 

which, at least for my isp, needs to be:

AuthUserFile /PathToYourFolderwithPasswordfile/

AuthGroupFile /dev/null

AuthName EnterPassword

AuthType Basic

require user (UsernameInPasswordfile)

Archived

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

×
×
  • Create New...