Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2007
    Posts
    10
    Plugin Contributions
    0

    Default A question about subdomains

    My zen is fully operational right now. It sits in a subdirectory on my server and is working fine. I would like to change how people get to the site however.

    If my address is currently www.url.com/zen and I wish to change it to store.url.com will I have to do anything to my zen-cart if the sub-domain points to the same folder on my server. In other words, i wouldn't be moving any files in zen cart or changing the structure in any way. My host has sub-domains point to a folder so if I point my sub to the /zen folder then that should work without changes correct?

    Thanks

  2. #2
    Join Date
    Jun 2007
    Posts
    70
    Plugin Contributions
    1

    Default Re: A question about subdomains

    You should change includes/configure.php to fit the new location of your store and place the following code to the includes/application_top.php to prevent duplicate content penalty:

    PHP Code:
    <?php

    if(strpos($_SERVER['REQUEST_URI'], '/zen') !== false) {
      
    header("HTTP/1.1 301 Moved Permanently");
      
    header('Location: http://store.url.com'.str_replace('/zen'''$_SERVER['REQUEST_URI']));
      exit();
    }
    ?>

    (You should modify this code to fit your real locations (replace /zen and store.url.com)).

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

    Default Re: A question about subdomains

    Wrong. You will still have to make changes to Admin/includes/configure.php, and to includes/configure.php, to reflect the new correct address.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  4. #4
    Join Date
    Jun 2007
    Posts
    70
    Plugin Contributions
    1

    Default Re: A question about subdomains

    Quote Originally Posted by Get Em Fast View Post
    Wrong. You will still have to make changes to Admin/includes/configure.php, and to includes/configure.php, to reflect the new correct address.
    ... and what was I talking about? ;-)

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

    Default Re: A question about subdomains

    Quote Originally Posted by iRAY View Post
    ... and what was I talking about? ;-)
    iRay, it just so happened, that we was posting our posts at about the same time.
    Now, you need to understand, as you're new here, that this is a friendly forum, and there's no need for the attitude. Just because you got here and got your post out, while I was typing mine, doesn't give you the right to get pissed off at me. What's your problem, this morning? Go have some more coffee, think about it, THEN come back!
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  6. #6
    Join Date
    Jun 2007
    Posts
    70
    Plugin Contributions
    1

    Default Re: A question about subdomains

    Quote Originally Posted by Get Em Fast View Post
    Now, you need to understand, as you're new here, that this is a friendly forum, and there's no need for the attitude. Just because you got here and got your post out, while I was typing mine, doesn't give you the right to get pissed off at me. What's your problem, this morning? Go have some more coffee, think about it, THEN come back!
    Thanks for clarification. It wasn't personal attack to you, maybe due to my simple english...

    P.S. There is no morning in my country right now :-)

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

    Default Re: A question about subdomains

    No, problem, iRay. Just wanted to get things cleared up before they got too heated. Have a good day.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: A question about subdomains

    Nice to see you guys shaking hands and playing nicely again
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

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

    Default Re: A question about subdomains

    Quote Originally Posted by kuroi View Post
    Nice to see you guys shaking hands and playing nicely again
    Isn't it, though?
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

 

 

Similar Threads

  1. subdomains
    By Ajaysports in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 May 2009, 01:58 AM
  2. Subdomains
    By cate_kroft in forum General Questions
    Replies: 8
    Last Post: 31 Dec 2007, 05:26 AM
  3. SubDomains
    By Catharina in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Mar 2007, 02:10 PM
  4. Subdomains for Categories
    By KADesign in forum General Questions
    Replies: 14
    Last Post: 18 Mar 2007, 09:52 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR