How To Hide File Directory In OsCommerce URL?

Discussion in 'PHP' started by FloridaClay, Jul 26, 2013.

  1. #1
    Very new to the developers side of ecommerce. I installed OsCommerce but I'm having difficulties with the domain URL. Specifically, I want the site to load when I type in my domain: www.mystoreonline.com. However, when I type in the domain, it takes me to an index of the folder on the server where the site files are located. You have to double click the folder to be taken to the store. Therefore, the actual store URL is www.mystoreonline.com/catalog. How do I hide the catalog folder - or where do I move the files - so the site comes up when the URL of www.mystoreonline.com is entered?

    I'm sure it's an easy fix but just not sure how to go about fixing it.

    Any help would be appreciated.
     
    FloridaClay, Jul 26, 2013 IP
  2. DavidCh

    DavidCh Active Member

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    56
    #2
    What server do you have? You can do it easily on your server by choosing the catalog to which domain should belongs.
     
    DavidCh, Jul 26, 2013 IP
  3. FloridaClay

    FloridaClay Active Member

    Messages:
    284
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #3
    I have a hosting account with Hawk Hosting. I'm not sure what "choosing the catalog to which domain should belong" means?
     
    FloridaClay, Jul 26, 2013 IP
  4. DavidCh

    DavidCh Active Member

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    56
    #4
    When you are adding a domain to the cpanel, you are filling "Document Root".
    So all you have to do is to specify a path with your catalog.
     
    DavidCh, Jul 26, 2013 IP
  5. FloridaClay

    FloridaClay Active Member

    Messages:
    284
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Thanks DavidCh for the help. I finally figured it out. I just did a reinstall of the files on the server and prior to manually installing OsCommerce, I moved the files up one in the directory to public_html. Therefore, upon install it allows just the domain (and not domain/catalog) because the files are in the root.
     
    FloridaClay, Jul 28, 2013 IP