This is a discussion on default.php help within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; I have just installed oscommerce and am going thru the security steps. One of the steps says: Next, add 'default.php' ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I have just installed oscommerce and am going thru the security steps. One of the steps says: Quote:
|
| Sponsored Links | ||
| ||
| |
|
#2
| ||||
| ||||
|
__________________ Michael Sasek osCMax Developer
|
|
#3
| |||
| |||
| Ok so here's my uneducated guess of how to write this file. Code: AuthName "My Super Secure Directory" AuthType Basic AuthUserFile /etc/httpd/conf/htpass.conf require valid-user DirectoryIndex default.php default.html default.htm index.html index.htm index.php Also not sure what the currect path in that file should be. |
|
#4
| ||||
| ||||
| Ok, the path to AuthUserFile can be wherever you want it, usually in your home directory on shared hosting, above your web accessable directories. Looks good, this is what I use: Code: AuthType Basic AuthName "Locked Area" AuthUserFile /home/youraccount/.htpasswds/admin/passwd require valid-user DirectoryIndex default.php default.html default.htm index.html index.htm index.php You can use this site to auto generate your files: http://www.kelv.net/programming/htaccess/ Makes it really easy!
__________________ Michael Sasek osCMax Developer
|
|
#5
| |||
| |||
| But doesn't that make the directory password protected? I'm a bit confused on how to do this where the directory will not require a password or login, but will recognise default.php |
|
#6
| ||||
| ||||
| Well, if you dont want password protection, leave all the password code out. Make your .htaccess with only this line: Quote:
__________________ Michael Sasek osCMax Developer
|
|
#7
| |||
| |||
| Thanx. I ended up just changing the filename from default.php to index.php. Seems to work. Please let me know if anyone has had problems from doing that. |
|
#8
| |||
| |||
| I think when I tried changing the file to index.php that some of the links did not work. I ended up changing it back to default.php and calling it by filename from my menu choice (OsCommerce is not the home page on my site.). Maybe earlier version issue or I did not follow it through properly, but I changed back to default.php and moved on. Dave |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Default country USA | kmazumdar | osCMax v1.7 Installation | 2 | 09-12-2005 02:38 AM |
| default everything | americamba | osCommerce 2.2 Modification Help | 2 | 01-01-2004 11:19 AM |
| Images in Default.php? | pwog | osCommerce 2.2 Modification Help | 4 | 09-11-2003 06:48 PM |
| Default.php or index.php? | Dr_Evil | osCommerce 2.2 Installation Help | 2 | 04-17-2003 05:56 PM |
| default.php | Antonio | osCommerce 2.2 Installation Help | 1 | 01-21-2003 04:24 PM |