Thread: Redireting site

Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Posts
    45
    Plugin Contributions
    0

    Default Redireting site

    Hi
    Please can someone tell me how to redirect my site, I recently had to reinstall and and installed zencart to /public_html and now it comes up as www.mystore.com/mystore
    I would like it to be www.mystore.com/

    at the moment I am getting this error: -

    The requested URL /design21worksnddbc.html was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


    How can I make it redirect, I have built it up using the oversides and made my own template up.

    Please can you help?

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

    Default Re: Redireting site

    Edit your 2 configure.php files to correct it from being in a folder before
    https://www.zen-cart.com/tutorials/i...hp?article=122
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2008
    Posts
    45
    Plugin Contributions
    0

    Default Re: Redireting site

    I have moved the site to /home directory, changed the /includes/config files are directed, also downloaded the fix cache key to make sure its all running properly, when I type in www.design21works.com/fix_cache_key.php I get a blank screen
    I have a copy of the site both under the home directory and public_html

    All I simply want is for the site to direct www/design21works.com instead of www.design21works.com/design21

    I know its something simple but its still going over my head. I did not load my site up correctly and instead of using the overide facility I just amended the classic folder and then wondered why images etc were not displaying correctly.

    School of hard knocks I did download the manual from lulu which I have found soo invaluable, just this little glitch.

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

    Default Re: Redireting site

    I have a copy of the site both under the home directory and public_html
    A terminology issue??
    These normally mean the same thing
    Some servers have /home while others have /public_html
    Post your /includes/configure.php file BUT insure that you X out DB name and pass - Use the<> code tags
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Sep 2008
    Posts
    45
    Plugin Contributions
    0

    Default Re: Redireting site

    HI thank you
    I am still not getting what you are saying and I know its obvious, but its gone over my head. here is my includes/configure.php

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

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

    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/');

    define('DIR_WS_PHPBB', '/');

    // * 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_CATALOG', '/home/design21/public_html/design21works/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'zen_');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', '***');
    define('DB_SERVER_PASSWORD', '***');
    define('DB_DATABASE', 'design21_zc1');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // 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', 'database');
    define('DIR_FS_SQL_CACHE', '/home/design21/public_html/design21works/cache');

    // EOF

    [
    I need to get my head around this or I will forever that this issue, slowly overcoming my mortal fear of html at a great cost in time and effort. Thank you Kobra for you kind assistance.
    Last edited by Ajeh; 26 Jan 2010 at 04:54 PM.

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

    Default Re: Redireting site

    Quote Originally Posted by Myself
    Post your /includes/configure.php file BUT insure that you X out DB name and pass - Use the<> code tags
    You might ask a DEV to edit your DB details out of your posting
    All I simply want is for the site to direct www/design21works.com instead of www.design21works.com/design21
    See the changes in red

    Code:
    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    define('HTTP_SERVER', 'http://design21works.com');
    define('HTTPS_SERVER', 'https://design21works.com');
    
    // 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', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    
    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/');
    
    define('DIR_WS_PHPBB', '/');
    
    // * 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_CATALOG', '/home/design21/public_html/');
    
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    
    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'zen_');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'XXXXXXXXXXX');
    define('DB_SERVER_PASSWORD', 'XXXXXXXXXX');
    define('DB_DATABASE', 'XXXXXXXXXX');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // 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', 'database');
    define('DIR_FS_SQL_CACHE', '/home/design21/public_html/cache');
    Cotrrect you admin file also
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. v151 Problem with header different from local site to remote site.
    By eazy in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 14 Nov 2012, 03:45 AM
  2. cloned zen site - new admin is editing the original site
    By wmys in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 12 Nov 2009, 09:41 PM
  3. Installed Advanced Site Map - Now I have Two Site Maps???
    By grafx2g in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Apr 2009, 03:10 PM
  4. Replies: 0
    Last Post: 21 Nov 2008, 09:17 PM
  5. Why are people abandoning my site? Please check out my site
    By Natallia in forum Managing Customers and Orders
    Replies: 24
    Last Post: 11 Sep 2008, 03:57 PM

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