Thread: changing url

Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    Oct 2010
    Posts
    56
    Plugin Contributions
    0

    Default changing url

    Hi i'm building a site for someone with a new domain name so have set it all up using the ip as a url as they weren't certain on the domain name.
    but now they have got a domain i'm trying to swap everything over.
    i've looked and tried
    https://www.zen-cart.com/tutorials/i...hp?article=122
    but it didn't work properly :~

    this was the url i was setting up on
    http://87.117.246.204/~thoko/shop/
    but now i want to use
    http://www.eddiescafe.co.uk

    any ideas pls :)

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: changing url

    Both configure files have a define for the host
    It is most likely the IP curently and you need to change this to the domain name

    Also, the web server needs to have the domain name in the server configuration
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Oct 2010
    Posts
    56
    Plugin Contributions
    0

    Default Re: changing url

    sorry not sure what you mean can you elaborate a bit please :)

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: changing url

    sorry not sure what you mean can you elaborate a bit please :)
    configure.php files have this or similar at the top of the file
    Yours are using an IP currently and you need to change them to the domain name

    Code:
      define('HTTP_SERVER', 'http://www.domain.com');
      define('HTTPS_SERVER', 'https://www.domain.com');
      define('HTTP_CATALOG_SERVER', 'http://www.domain.com');
      define('HTTPS_CATALOG_SERVER', 'http://www.domain.com');
    Your web server has to have the domain name entered for the account also
    In linux, this is in the httpd file BUT most use a manager such as PLEX or cPanel to handle this
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Oct 2010
    Posts
    56
    Plugin Contributions
    0

    Default Re: changing url

    yes i've done all the changes to the configure.php files as that thread said
    but when i uploaded them it sent the site crazy
    with no images just text?????

    this is what i have changed so you can see if i have changed it correctly

    define('HTTP_SERVER', 'http://www.eddiescafe.co.uk');
    define('HTTPS_SERVER', 'https://www.eddiescafe.co.uk');
    define('HTTP_CATALOG_SERVER', 'http://www.eddiescafe.co.uk');
    define('HTTPS_CATALOG_SERVER', 'https://www.eddiescafe.co.uk');

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'false');
    define('ENABLE_SSL_ADMIN', 'false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_ADMIN', '/public_html/shop/adminsection/');
    define('DIR_WS_CATALOG', '/public_html/shop/');
    define('DIR_WS_HTTPS_ADMIN', '/public_html/shop/adminsection/');
    define('DIR_WS_HTTPS_CATALOG', '/public_html/shop/');

    on the original it was this


    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    define('HTTP_SERVER', 'http://87.117.246.204');
    define('HTTPS_SERVER', 'https://87.117.246.204');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/~thoko/shop/');
    define('DIR_WS_HTTPS_CATALOG', '/~thoko/shop/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

  6. #6
    Join Date
    Oct 2010
    Posts
    56
    Plugin Contributions
    0

    Default Re: changing url

    oh and yes it is running cpanel :)
    with the correct website url set up

  7. #7
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: changing url

    Well, your shop/includes/configure.php file has not been changed and is still showing the ip address for URLs.

    When you download and edit that file you have to make the online version writeable (permissions of 644) so that when you upload the edited file it overwrites the old file. Then, once you have uploaded the edited file you reset the new online file to 444 or 400. You do the same with your 'admin' configure.php file.

    By the way - you don't have a Full SSL Certificate, and so you cannot use https://www.eddiescafe.co.uk

    Vger

  8. #8
    Join Date
    Oct 2010
    Posts
    56
    Plugin Contributions
    0

    Default Re: changing url

    i don't need ssl as they'll be using paypal to handle all the payments
    and the 1st example was the one that had the changes to the new url :)
    i tried uploading it and it sent the site haywire

  9. #9
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: changing url

    You can't mix up configure.php file content between the admin and the storefront. They're different files, despite having a few similarities.
    Quote Originally Posted by christianstogether View Post
    this is what i have changed so you can see if i have changed it correctly

    define('HTTP_SERVER', 'http://www.eddiescafe.co.uk');
    define('HTTPS_SERVER', 'https://www.eddiescafe.co.uk');
    define('HTTP_CATALOG_SERVER', 'http://www.eddiescafe.co.uk');
    define('HTTPS_CATALOG_SERVER', 'https://www.eddiescafe.co.uk');

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'false');
    define('ENABLE_SSL_ADMIN', 'false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_ADMIN', '/public_html/shop/adminsection/');
    define('DIR_WS_CATALOG', '/public_html/shop/');
    define('DIR_WS_HTTPS_ADMIN', '/public_html/shop/adminsection/');
    define('DIR_WS_HTTPS_CATALOG', '/public_html/shop/');
    That's an "admin version" of configure.php, from /admin/includes/configure.php
    Quote Originally Posted by christianstogether View Post
    on the original it was this


    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    define('HTTP_SERVER', 'http://87.117.246.204');
    define('HTTPS_SERVER', 'https://87.117.246.204');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/~thoko/shop/');
    define('DIR_WS_HTTPS_CATALOG', '/~thoko/shop/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
    That's a non-admin version, from /includes/configure.php
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Oct 2010
    Posts
    56
    Plugin Contributions
    0

    Default Re: changing url

    yes i know there's 2 dif ones and i made sure i put the right ones in the right place

    sorry the ones i posted prob weren't the right ones but the url's are the same so was just showing to see if i'd changed them right :)

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v150 changing url
    By jascoaut in forum General Questions
    Replies: 1
    Last Post: 12 Jul 2012, 10:25 AM
  2. url changing
    By antdikens in forum General Questions
    Replies: 1
    Last Post: 27 Oct 2008, 10:05 PM
  3. Changing URL
    By toaldingham in forum General Questions
    Replies: 9
    Last Post: 17 Sep 2008, 10:35 AM
  4. Changing URL
    By GSIS in forum General Questions
    Replies: 1
    Last Post: 14 Aug 2007, 02:26 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