This is a discussion on can someone pleaseee help? .htaccess trouble within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; hi, i'm currently installing OSC offline on my local computer and have come to the last few steps. i am ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| hi, i'm currently installing OSC offline on my local computer and have come to the last few steps. i am meant to: -Password protect your /catalog/admin dir using .htaccess and the oscdox tells me to: add this code to my .htaccess file AuthType Basic AuthName "Locked Area" AuthUserFile /home/youraccount/.htpasswds/admin/passwd require valid-user the thing is, there is a .htacess file in www/catalog www/catalog/admin www/catalog/includes www/catalog/pub which of the .htaccess files should I add the code to? or am i meant to write a new .htaccess file? also, i am meant to creat a .htpasswd file. after i create this file, which folder do I put the .htpasswd file in?? pleaseeee help! |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| The htaccess password protects all directories underneath, as well as the one it is in, it by default. So put it in /admin. There are many functions the htaccess carries out besides password-protecting, the one in includes prevents direct http acces for example, to stop people requesting sensitive files. So leave them as they are. You will need to generate an htaccess password, the easiest way is through a web facility eg here: http://www.kxs.net/support/htaccess_pw.html (there are many others like that). then store the file containing the user it will vary for your server. hope this helps jon |
|
#3
| |||
| |||
| thanks heaps jon! |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| .htaccess question | cupido | osCommerce 2.2 Installation Help | 2 | 06-25-2004 06:09 PM |
| Trouble with .htaccess /.htpasswd | DancesWithData | osCommerce 2.2 Installation Help | 1 | 04-11-2004 01:21 PM |
| htaccess | nisse | osCommerce 2.2 Installation Help | 1 | 11-12-2003 04:35 PM |
| Creating the .htaccess file | DJ-Loki | osCommerce 2.2 Installation Help | 2 | 07-02-2003 07:42 AM |
| Help with .htaccess and htpasswd please | ozstar | osCommerce 2.2 Installation Help | 5 | 03-12-2003 01:45 AM |