+ Reply to Thread
Results 1 to 7 of 7

Thread: How to change domain path for Home Page.

  1. #1
    Client danbrouwers's Avatar
    Join Date
    Feb 2010
    Location
    Iowa
    Posts
    17
    Squirrelcart version
    v3.2.0

    How to change domain path for Home Page.

    I have a new install of SquirrelCart Pro v3.1.2 and my files are setup as follows:

    Home
    .....l_sc_data
    .....l_public_html
    ...............l_sc_images
    ...............l_squirrelcart
    ...............l_store.php

    Currently customers have to type in "www.example.com/store.php" to go to my home page. But what I want is to type in "www.example.com" to go to my home page.

    In my webhost control panel I've tried changing the destination of "www.example.com" from my folder "t-shirtsupply" to the file "t-shirtsupply/store.php", but the file "/store.php" does not show for me to do that only the folders show, such as "sc_images" and "squirrelcart".

    What can I do or change so my customers can simply type in "www.example.com" to go to my home page?

    Dan Brouwers

  2. #2
    Client danbrouwers's Avatar
    Join Date
    Feb 2010
    Location
    Iowa
    Posts
    17
    Squirrelcart version
    v3.2.0

    do not click links in above post

    I thought I would use "xxx" to hide my website domain so bots would not read them, not thinking about "xxx" linking to anything.

    Hopefully an Administrator of this board can edit and remove the ability to link from"xxx".

    My apologies, blame it on being a new guy at this forum stuff.

    Dan Brouwers

  3. #3
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    5,688
    Squirrelcart version
    v3.2.1
    1. Rename store.php to index.php
    2. Change $cart_page in your squirrelcart/config.php file as follows:
    PHP Code:
    $cart_page '/index.php'
    Thanks,
    Jamie

    Please rate or review us!
    Hotscripts PHP Resource Index



    It's too bad that whole families have to be torn apart by something as simple as wild dogs. - Jack Handey

  4. #4
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    5,688
    Squirrelcart version
    v3.2.1
    Quote Originally Posted by danbrouwers View Post
    I thought I would use "xxx" to hide my website domain so bots would not read them, not thinking about "xxx" linking to anything.

    Hopefully an Administrator of this board can edit and remove the ability to link from"xxx".

    My apologies, blame it on being a new guy at this forum stuff.
    No problem. I changed your post to reference example.com instead.

    If you ever need to write an example URL, you should always use example.com (or .org, or .net). It was reserved for that purpose and won't ever resolve to someone's website. See the page you get when you try it:
    http://www.example.com/
    Thanks,
    Jamie

    Please rate or review us!
    Hotscripts PHP Resource Index



    It's too bad that whole families have to be torn apart by something as simple as wild dogs. - Jack Handey

  5. #5
    Client danbrouwers's Avatar
    Join Date
    Feb 2010
    Location
    Iowa
    Posts
    17
    Squirrelcart version
    v3.2.0

    How to change domain path for Home Page.

    Jamie,

    Changing store.php to index.php and making same change to config.php did the trick!

    And also thank you for the example.com education.

    I appreciate it, Dan Brouwers

  6. #6
    Client danbrouwers's Avatar
    Join Date
    Feb 2010
    Location
    Iowa
    Posts
    17
    Squirrelcart version
    v3.2.0

    Cannot login to Admin CP

    Jamie,

    After making the changes described above, I tried logging into the Admin CP and I get an "Error 404 - Not Found" message.

    The url reads as "http://www.example.com/store.phpindex.php".

    What do I change to correct this?

    Thanks, Dan Brouwers

  7. #7
    Client danbrouwers's Avatar
    Join Date
    Feb 2010
    Location
    Iowa
    Posts
    17
    Squirrelcart version
    v3.2.0

    Cannot login to Admin CP

    Disregard the above post the problem is fixed.

    Evidently it takes a few minutes for the files and the DB to sync.

    Thanks, Dan Brouwers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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