Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 6 of 6

This is a discussion on Directory index for OSCommerce? in the Shared & Semi-Dedicated forum
I am setting up OSCommerce, and in the instructions are the following: 2. You need to add default.php to your directory index listing in the ...

  1. #1
    JPC Member
    Join Date
    Apr 2003
    Location
    Outer Space
    Posts
    7

    Directory index for OSCommerce?

    I am setting up OSCommerce, and in the instructions are the following:

    2. You need to add default.php to your directory index listing in the httpd.conf file for apache so you can access your store by www.yourserver.com/catalog/ instead of www.yourserver.com/catalog/default.php

    If you have your own server you can make these changes yourself by editing the apache configuration file located at /usr/local/apache/conf/httpd.conf
    Add this statement:
    DirectoryIndex? index.php default.php
    To the <IfModule? mod_dir.c> section of your httpd.conf file.

    Okay, how do I do this? I'm not finding the file. I have a feeling I'm not looking in the right spot.

  2. #2
    JPC Senior Member Geoff's Avatar
    Join Date
    Sep 2001
    Location
    New Zealand
    Posts
    76
    you dont have access to httpd.conf ... you can edit your .htaccess file in the Control Panel to add in the DirectoryIndex line.
    Attitude Group Ltd

    osCommerce Installation, Customization and Support
    osCommerce Watch - News and Views on the open source shopping cart system

  3. #3
    JPC Member
    Join Date
    Apr 2003
    Location
    Outer Space
    Posts
    7
    But won't that mean that anyone wanting to even SHOP would need a password just to access the store?

  4. #4
    JPC Addict
    Join Date
    Dec 2001
    Posts
    189
    There are 4 or 5 files to edit and you can change default.php to index.php

    I did it and it took a couple of minutes.

    If your still having a problem I will look up the file changes needed for you

  5. #5
    JPC Senior Member Geoff's Avatar
    Join Date
    Sep 2001
    Location
    New Zealand
    Posts
    76
    password protection is only one thing you can do with .htaccess - using it doesnt mean you have to password protect anything ... the last snapshot i downloaded of osCommerce had a .htaccess file that would do the job included ... have you checked this?

    Otherwise here is a link explaining everything you can do with .htaccess ...

    http://javascriptkit.com/howto/htaccess.shtml

  6. #6
    JPC Member
    Join Date
    Apr 2003
    Location
    Outer Space
    Posts
    7
    Thanks for all the help. Turns out, instead of using something like:

    DirectoryIndex? index.php default.php

    All I needed was:
    DirectoryIndex? default.php

    Now it's working! Horrah! Now, if I can just get the images to show up again on the admin page (they were showing up yesterday!!!!).....

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •