Results 1 to 9 of 9
  1. #1
    Join Date
    Dec 2010
    Posts
    9
    Plugin Contributions
    0

    Default How to change the default URL?

    I have my store set up at http://www.ecosafebusiness.com/ShopZen/ (it was installed there by SimpleScripts). I would rather use http://shop.ecosafebusiness.com/ but Zen-Cart is placing absolute addresses in all the URLs instead of relative ones. How do I change the default URL?

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to change the default URL

    Move your Zen Cart to the domain root.
    I have installed Zen Cart to a directory. How do I rename or move that directory?

    Zen Cart will automatically generate correct URLs for its location when you do the move correctly.

  3. #3
    Join Date
    Dec 2010
    Posts
    9
    Plugin Contributions
    0

    Default Re: How to change the default URL

    Quote Originally Posted by gjh42 View Post
    Move your Zen Cart to the domain root.
    I have installed Zen Cart to a directory. How do I rename or move that directory?

    Zen Cart will automatically generate correct URLs for its location when you do the move correctly.
    Thanks for your quick reply. Unfortunately there is already a web site in the domain root. Where in the code would I find where the URL is detected? I know enough about PHP to change it as long as I can find it.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to change the default URL

    I'm not sure you can do what you want. It might be possible with a URL rewriting mod - the CEON mod apparently gives the best flexibility.

    If you have a site in the root, how would a visitor specify that they want to go to your ZC instead of the root site? The URL you describe points only to the root. You can't have it magically point to two different places depending on the visitor's mood.

  5. #5
    Join Date
    Dec 2010
    Posts
    9
    Plugin Contributions
    0

    Default Re: How to change the default URL

    Quote Originally Posted by gjh42 View Post
    I'm not sure you can do what you want. It might be possible with a URL rewriting mod - the CEON mod apparently gives the best flexibility.

    If you have a site in the root, how would a visitor specify that they want to go to your ZC instead of the root site? The URL you describe points only to the root. You can't have it magically point to two different places depending on the visitor's mood.
    ZC isn't in the root. It's in /ShopZen/. The main site is in the root. But I may be misunderstanding your reference to 'root directory'. The main site is in /users/username/www/, ZC is in /users/username/www/ShopZen/. I have done a fair bit of PHP/mySQL/HTML programing/scripting, but I am far from being a server admin. My server admin program (cPanel) considers /www/ to be root and I am unable to point a subdomain any higher up.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to change the default URL

    I missed the shop. in http://shop.ecosafebusiness.com/, so you're not asking for the identical URL as the root site.
    It should be possible to point shop.ecosafebusiness to /ZenShop/, but I don't know how. Maybe an .htaccess file, or maybe a host/server configuration...

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to change the default URL

    You might need to alter HTTP_SERVER and/or DIR_WS_CATALOG in /includes/configure.php and /admin/includes/configure.php after getting the routing created.

  8. #8
    Join Date
    Dec 2010
    Posts
    9
    Plugin Contributions
    0

    Default Re: How to change the default URL

    Quote Originally Posted by gjh42 View Post
    You might need to alter HTTP_SERVER and/or DIR_WS_CATALOG in /includes/configure.php and /admin/includes/configure.php after getting the routing created.
    Ok. That worked. Thanx!!

  9. #9
    Join Date
    Feb 2011
    Posts
    1
    Plugin Contributions
    0

    Default Re: How to change the default URL?

    I found this post about changing the location to a subdoain (not moving the zencart install location, just using a different url)
    I haven't tried it yet, but it looks like it has some of the same details, and then some.

    https://www.zen-cart.com/tutorials/i...hp?article=122

    I found it in this post:
    http://www.zen-cart.com/forum/showth...ight=subdomain

    May you be well and happy

 

 

Similar Threads

  1. v155 how do I change the default adminstrator?
    By delia in forum General Questions
    Replies: 17
    Last Post: 18 Aug 2016, 01:59 PM
  2. v151 How would I change default image from the small to the medium or large
    By l0st1 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 25 Apr 2014, 03:11 AM
  3. v151 with ultimate seo Url,how to change the ez-page url ?
    By whywell in forum General Questions
    Replies: 1
    Last Post: 17 Jan 2013, 09:12 AM
  4. Replies: 4
    Last Post: 16 Feb 2011, 03:32 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