Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

.htpasswd_oscommerce


e-Discounters

Recommended Posts

Hi,

 

you could download the .htaccess-file in your admin-directory and uncomment or remove the parts for the password protection.

 

Something like this and add # in front of each line:

##### OSCOMMERCE ADMIN PROTECTION - BEGIN #####
AuthType Basic
AuthName "osCommerce Online Merchant Administration Tool"
AuthUserFile /{YOUR}/{PATH}/{TO}/{PASSWORDFILE}/.htpasswd_oscommerce
Require valid-user
##### OSCOMMERCE ADMIN PROTECTION - END #####

 

In the same process, create an empty file. Just create a new text-document in your text-editor and save it as ".htpasswd_oscommerce".

Upload both files, the edited ".htaccess" and the empty ".htpasswd_oscommerce", to your server in their respective directories.

Check, if both files are writeable.

 

Now, you should be able to access your admin-area again, hopefully.

Go to the "Administrators"-Configuration, edit your Admin-account and save it with a new password. Don't forget to check the "Protect With htaccess/htpasswd" checkbox. This should fill your ".htpasswd_oscommerce" and enable the .htaccess-protection again.

 

I would suggest, you download both files again - ".htaccess" and ".htpasswd_oscommerce" - and set both files on your server to not-writeable.

 

Hope this helps.

 

AD

Link to comment
Share on other sites

  • 3 months later...

Archived

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

×
×
  • Create New...