Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2008
    Location
    london
    Posts
    169
    Plugin Contributions
    0

    Default Address not found after moving cat to ROOT

    Hi, all

    this is probablay an easy one but i just can not seem to figure it out,
    Help.

    I have a working catalog at http://www.k-craftteddies.co.uk/store
    i moved it to http://www.k-craftteddies.co.uk
    but everything is not ok. The main page shows up, but all the links point to http://www.k-craftteddies.co.ukindex.php main_page.
    it then says address not found. If i input a / after the co.uk
    then the link works ok.
    i did not use the 122 tutorial, Should of done!
    hers is one of the configs file

    */


    // Define the webserver and path parameters
    // Main webserver: eg-http://www.your_domain.com -
    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com
    /*
    * URLs for your site will be built via:
    * HTTP_SERVER plus DIR_WS_ADMIN or
    * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
    * HTTP_SERVER plus DIR_WS_CATALOG or
    * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
    * ...depending on your system configuration settings
    *
    * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
    */
    define('HTTP_SERVER', 'http://www.k-craftteddies.co.uk');
    define('HTTPS_SERVER', 'https://www.k-craftteddies.co.uk');
    define('HTTP_CATALOG_SERVER', 'http://www.k-craftteddies.co.uk');
    define('HTTPS_CATALOG_SERVER', 'https://www.k-craftteddies.co.uk');

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

    // 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', '/*******/');
    define('DIR_WS_CATALOG', '');
    define('DIR_WS_HTTPS_ADMIN', '/******/');
    define('DIR_WS_HTTPS_CATALOG', '');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
    define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    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_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_ADMIN', '/home/kcraftte/public_html/*******/');
    define('DIR_FS_CATALOG', '/home/kcraftte/public_html');

    define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
    define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
    define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', '');
    define('DB_SERVER_PASSWORD', '()');
    define('DB_DATABASE', '');
    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'db');
    // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/home/kcraftte/public_html/cache');

    // EOF

    BTW should i use the default path for the cache?

    Thanks in advance for you assistance

    Soul39

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Address not found after moving cat to ROOT

    Quote Originally Posted by Soul39 View Post
    define('DIR_WS_CATALOG', '');
    ...
    define('DIR_WS_HTTPS_CATALOG', '');
    You can't leave those blank. They must have at least a '/' in them.
    .
    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.

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,723
    Plugin Contributions
    13

    Default Re: Address not found after moving cat to ROOT

    / * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_ADMIN', '/home/kcraftte/public_html/*******/');
    define('DIR_FS_CATALOG', '/home/kcraftte/public_html/');
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  4. #4
    Join Date
    Jul 2008
    Location
    london
    Posts
    169
    Plugin Contributions
    0

    Default Re: Address not found after moving cat to ROOT

    Thank you both for your reply. It worked

    What about the path for the cache, should i change it to" file" and revert to tha default path?
    i don't quite understand.
    Also do i need to get rid of the shop in the store dir? or can i keep it for testing purposes.

    once again, thank you

    Soul39

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,723
    Plugin Contributions
    13

    Default Re: Address not found after moving cat to ROOT

    cache is fine as it is.
    Keeping the shop in store might hurt you with search engines if they see both. Google hiding directories from bots.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  6. #6
    Join Date
    Jul 2008
    Location
    london
    Posts
    169
    Plugin Contributions
    0

    Default Re: Address not found after moving cat to ROOT

    dbltoe,
    is there a way to get rid of the store without making a hash of it?
    Also i've had a closer look at the config files and notice that the config files have different DIR_FS_CATALOG

    for INCLUDES- CONFIGURE:I have-
    /home/kcraftte/public.html/store/'
    should that not be-
    /home/kcraftte/public.html/' since my shop is in the root dir.

    FOR ADMIN-INCLUDES-CONFIGURE I have-
    /home/kcraftte/public.html'
    there should be a / at the end, yes.

    Which is correct?

    Soul39

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,723
    Plugin Contributions
    13

    Default Re: Address not found after moving cat to ROOT

    Yes to both
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

 

 

Similar Threads

  1. v139h database table project version not found after moving to new GoDaddy server
    By soaringeagle in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 2 Apr 2012, 10:18 PM
  2. Getting Object Not Found error after installing Export Email Address addon
    By MtnVision in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 24 May 2011, 03:01 AM
  3. 404 after moving site to root
    By tracyselena in forum General Questions
    Replies: 3
    Last Post: 6 Jan 2011, 04:59 AM
  4. Admin page not found after moving to new server
    By serge111 in forum General Questions
    Replies: 2
    Last Post: 26 Nov 2010, 09:31 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