Page 1 of 2 12 LastLast
Results 1 to 10 of 40

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Location
    UK
    Posts
    95
    Plugin Contributions
    0

    Default Domain name question

    Currently to get to my store I need to add /shop to the end of my domain name.
    However I would like it so that via my domain nam only, I can access the store.
    In other words I want my store front to be the home page.
    How do I do that?

    Thanks in advance

  2. #2
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Domain name question

    Flex, in order to do this, you need to move all the contents from the folder "shop" into the main directory, "www", "pub", "public", whichever it may be. you will, then, need to edit the admin/includes/configure.php and includes/configure.php to reflect this change. eg; remove the "shop" from the path, in both of these files.

    Hope this helps.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  3. #3
    Join Date
    Apr 2007
    Location
    UK
    Posts
    95
    Plugin Contributions
    0

    Default Re: Domain name question

    OK, there seems to be a lot of places where it says shop in the configure file.Do you know exactly which part I have to delete the word 'shop' from?

    Thanks!

  4. #4
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Domain name question

    Oh, yea. All of them. As your site will no longer be in that folder, ANY reference to that particular folder will result in an error being shown, instead of your site.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  5. #5
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Domain name question

    Edit: except for this one, unless you want to change your database.

    define('DB_DATABASE', 'shop');

    It may say something else, depending on what you named your database, but you DON'T want to change this entry on either file. The rest you can change.
    Sorry. Forgot about that one.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  6. #6
    Join Date
    Apr 2007
    Location
    Whitehouse, Texas
    Posts
    131
    Plugin Contributions
    0

    Default Re: Domain name question

    Well there is an easier way, you can do a permanent redirect on the default index page.

  7. #7
    Join Date
    May 2009
    Location
    Virginia
    Posts
    101
    Plugin Contributions
    0

    Default Re: Domain name question

    Quote Originally Posted by Get Em Fast View Post
    Oh, yea. All of them. As your site will no longer be in that folder, ANY reference to that particular folder will result in an error being shown, instead of your site.
    It worked perfectly AND now my domain page shows up instead of just a blank page. Wherever there was a following slash in my configure files I left it. Examples from admin:

    define('DIR_WS_ADMIN', '/catalog/admin/'); became define('DIR_WS_ADMIN', '/admin/');

    define('DIR_FS_SQL_CACHE', '/usr/www/users/username/catalog/cache'); became define('DIR_FS_SQL_CACHE', '/usr/www/users/username/cache');

    define('DIR_WS_HTTPS_CATALOG', '/catalog/'); became define('DIR_WS_HTTPS_CATALOG', '/');

    Thanks so much. It solved other problems I had.

  8. #8
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Domain name question

    Glad to help. It's good to see everybody got everything fixed.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  9. #9
    Join Date
    Sep 2006
    Posts
    281
    Plugin Contributions
    0

    Default Re: Domain name question

    Quote Originally Posted by flex22 View Post
    OK, there seems to be a lot of places where it says shop in the configure file.Do you know exactly which part I have to delete the word 'shop' from?

    Thanks!
    If you go this route using the 'Find and Replace' might make your life easier.
    [FONT="Georgia"]Samuel Turnmire[/FONT]
    [FONT="Century Gothic"]co-Founder[/FONT]
    [FONT="Book Antiqua"]geekFoundry[/FONT]

  10. #10
    Join Date
    Apr 2007
    Location
    Whitehouse, Texas
    Posts
    131
    Plugin Contributions
    0

    Default Re: Domain name question

    Actually it isn't cheesy at all. I use an index.php page instead of a index.html page:

    <?
    Header( "HTTP/1.1 301 Moved Permanently" );
    Header( "Location: http://www.got-its.com/zencart/" );
    ?>
    <HTML>
    <HEAD>
    <TITLE>Your Title</TITLE>
    </HEAD>
    <BODY>
    <?
    Header( "HTTP/1.1 301 Moved Permanently" );
    Header( "Location: http://www.got-its.com/zencart/" );
    ?>

    Google loves it as I use their HTML method of verification and I didnt have to move my file structure around or alter my config files.

    The only difference the consumer sees is the addition of a subdirectory on their address bar.

    Of course having your store in your root folder is ideal but those of us that already have a crapload of stuff there for other things it is not always feasible, that and the fact that I try not to alter the config files if I dont have to.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 9
    Last Post: 3 Jun 2009, 03:21 PM
  2. change of name and domain question
    By kitcorsa in forum General Questions
    Replies: 5
    Last Post: 1 Sep 2008, 12:59 PM
  3. Setting Up Local Domain Name - quick question
    By crystal-vysion in forum Installing on a Windows Server
    Replies: 5
    Last Post: 26 Mar 2007, 11:17 AM
  4. Transfer Site to new domain, and changeing domain name
    By dng in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 9 Mar 2007, 12:28 AM

Posting Permissions

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