Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 35
  1. #11
    Join Date
    May 2007
    Location
    Leicester, England
    Posts
    165
    Plugin Contributions
    1

    Have a Drink Re: Page 404 Error on Currency Selection

    Dr Byte

    Here is the .htaccess file for my 'root' folder:
    DirectoryIndex index.shtml

    # secure htaccess file
    <Files .htaccess>
    order allow,deny
    deny from all
    </Files>

    # automatically correct simple spelling errors
    <IfModule mod_speling.c>
    CheckSpelling On
    </IfModule>

    ErrorDocument 400 /notfound.shtml
    ErrorDocument 401 /notfound.shtml
    ErrorDocument 403 /notfound.shtml
    ErrorDocument 404 /notfound.shtml
    ErrorDocument 500 /notfound.shtml

    # disable directory browsing
    Options All -Indexes

    # prevent folder listing
    IndexIgnore *

    # set the server timezone
    SetEnv TZ Etc/Greenwich

    # pass the default character set
    AddDefaultCharset utf-8

    # preserve bandwidth for PHP enabled servers
    <ifmodule mod_php4.c>
    php_value zlib.output_compression 16386
    </ifmodule>

    # disable the server signature
    ServerSignature Off
    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot###################### [OR]
    RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
    RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]
    RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
    RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
    RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
    RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]
    RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
    RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]
    RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]
    RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]
    RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]
    RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]
    RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]
    RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]
    RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]
    RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]
    RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]
    RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]
    RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]
    RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]
    RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]
    RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]
    RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]
    RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]
    RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]
    RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]
    RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]
    RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]
    RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]
    RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]
    RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]
    RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]
    RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]
    RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]
    RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Zeus
    RewriteRule ^.* - [F,L]
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?ho-hose\.co\.uk/.*$ [NC]
    RewriteRule \.(gif|jpg|js|css)$ - [L,F]

    RewriteCond %{HTTP_HOST} ^ho-hose.net$ [OR]
    RewriteCond %{HTTP_HOST} ^www.ho-hose.net$
    RewriteRule ^(.*)$ /store/index.php [R=301,L]

  2. #12
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default

    1. What happens if you set RewriteEngine to Off in both files, even if just temporarily?

    2. Please post the contents of your /includes/functions/html_output.php file here.

    3. Please post the contents of your /includes/templates/YOURTEMPLATE/sideboxes/tpl_currencies.php file.
    Or the template_default one if you don't have an override ... and say which one it is.

    4. Please post both of your configure.php files (/includes/ and /admin/includes/) ... without passwords.
    .

    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. #13
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Page 404 Error on Currency Selection

    How did you configure the domain redirect for www.ho-hose.net and ho-hose.co.uk to point to the same place?
    .

    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.

  4. #14
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Page 404 Error on Currency Selection

    Okay ... how come both http://www.ho-hose.net/store/ and http://ho-hose.co.uk/store/ are invalid when you have your RewriteEngine turned off ... resulting in 404 pages ?
    .

    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.

  5. #15
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Page 404 Error on Currency Selection

    Something is clearly wrong with how you have your domains and redirects set up.

    1. http://www.ho-hose.net/ points to your old site.
    2. You have a redirect from http://www.ho-hose.net/store/ to point to your new site.
    3. Any click on a link in your store goes to www.ho-hose.net/store ...
    4. EXCEPT if you click the HOME link or change currencies ... in which case it does a URL redirect to ho-hose.co.uk/store

    5. http://www.ho-hose.net/store/?currency=EUR&main_page=index results in 404 errors.
    But http://ho-hose.co.uk/store/index.php?currency=EUR&main_page=index works fine


    If you continue with these uncoordinated redirects, you'll have search engines dumping you in the bottom of the pile ... because your pages are served in a loop.

    In short, your problems are related to your many redirect configurations, which could be tied in part to your attempts at using SEFU mods.
    .

    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.

  6. #16
    Join Date
    May 2007
    Location
    Leicester, England
    Posts
    165
    Plugin Contributions
    1

    Have a Drink Re: Page 404 Error on Currency Selection

    1: a) If I turn the rewrite engine off in both files I just go to the existing, non- ZC store. If I then go to www.ho-hose.co.uk/store/index.php and change the currency I get a Page Not Found error.
    b) If I turn the root .htaccess Rewrite rules to OFF, and the store rewrite access to ON, the same thing as in 1a, above, occurs.
    c) If I set the rewrite rules at Root level to ON but the store's to OFF, and go to www.hohose.net, the currency doesn't change, AND the category links are broken.

    2: Here is the /includes/functions/html_output.php file
    Code:
    <?php
    /* html_output.php
     * HTML-generating functions used throughout the core
     *
     * @package functions
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: html_output.php 4263 2006-08-25 06:13:19Z drbyte $
      * @version $Id: html_output.php 4792 2006-10-20 04:41:38Z drbyte $*/
    
    // SEO URLs zen_href_link replacement
    function zen_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true, $static = false, $use_dir_ws_catalog = true) {
    
        // not all core scripts (such as the Paypal IPN handler) implement the core auto loader system (WTF!?)
        if (!isset($GLOBALS['SeoUrl'])) {
            require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'seo/seo.url.php');
            $GLOBALS['SeoUrl'] =& new SeoUrl($GLOBALS['db']);
            $GLOBALS['SeoUrl']->setupLanguage($_SESSION['languages_id']);
        }
    
        return $GLOBALS['SeoUrl']->buildHrefLink($page, $parameters, $connection, $add_session_id, $static, $use_dir_ws_catalog);
    }
      function zen_href_link_stock($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true, $static = false, $use_dir_ws_catalog = true) {
    global $request_type, $session_started, $http_domain, $https_domain;
    
        if (!zen_not_null($page)) {
          die('</td></tr></table></td></tr></table><br /><br /><strong class="note">Error!<br /><br />Unable to determine the page link!</strong><br /><br />');
        }
    
        if ($connection == 'NONSSL') {
          $link = HTTP_SERVER;
        } elseif ($connection == 'SSL') {
          if (ENABLE_SSL == 'true') {
            $link = HTTPS_SERVER ;
          } else {
            $link = HTTP_SERVER;
          }
        } else {
          die('</td></tr></table></td></tr></table><br /><br /><strong class="note">Error!<br /><br />Unable to determine connection method on a link!<br /><br />Known methods: NONSSL SSL</strong><br /><br />');
        }
    
        if ($use_dir_ws_catalog) {
          if ($connection == 'SSL' && ENABLE_SSL == 'true') {
            $link .= DIR_WS_HTTPS_CATALOG;
          } else {
            $link .= DIR_WS_CATALOG;
          }
        }
    
        if (!$static) {
          if (zen_not_null($parameters)) {
            $link .= 'index.php?main_page='. $page . "&" . zen_output_string($parameters);
          } else {
            $link .= 'index.php?main_page=' . $page;
          }
        } else {
          if (zen_not_null($parameters)) {
            $link .= $page . "?" . zen_output_string($parameters);
          } else {
            $link .= $page;
          }
        }
    
        $separator = '&';
    
        while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1);
    //Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined
        if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) {
          if (defined('SID') && zen_not_null(SID)) {
            $sid = SID;
          } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == 'true') ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) {
    
            if ($http_domain != $https_domain) {
              $sid = zen_session_name() . '=' . zen_session_id();
            }
          }
        }
    
    //clean up the link before processing
        while (strstr($link, '&&')) $link = str_replace('&&', '&', $link);
        while (strstr($link, '&amp;&amp;')) $link = str_replace('&amp;&amp;', '&amp;', $link);
    
        if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) {
          while (strstr($link, '&&')) $link = str_replace('&&', '&', $link);
    
          $link = str_replace('&amp;', '/', $link);
          $link = str_replace('?', '/', $link);
          $link = str_replace('&', '/', $link);
          $link = str_replace('=', '/', $link);
    
          $separator = '?';
        }
    
        if (isset($sid)) {
          $link .= $separator . zen_output_string($sid);
        }
    
    //clean up the link after processing
        while (strstr($link, '&amp;&amp;')) $link = str_replace('&amp;&amp;', '&amp;', $link);
    
        $link = ereg_replace('&', '&amp;', $link);
        return $link;
      }
    
    
    
    ...
    Please don't chide me for stripping out a load of unnecessary stuff.

    3: here is the contents of my /includes/templates/template_default/sideboxes/tpl_currencies.php - don't have an override.
    <?php
    /*Side Box Template
    @package templateSystem
    @copyright Copyright 2003-2005 Zen Cart Development Team
    @version $Id: tpl_currencies.php 4566 2006-09-20 01:47:25Z birdbrain $*/
    $content = "";
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
    $content .= zen_draw_form('currencies_form', zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '', $request_type, false), 'get');
    $content .= zen_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], 'onchange="this.form.submit();"') . $hidden_get_variables . zen_hide_session_id();
    $content .= '</form>';
    $content .= '</div>';
    ?>
    Again, for my own reasons (too a*al to go into here) I have reduced file size by stripping out some unnecessary stuff.

  7. #17
    Join Date
    May 2007
    Location
    Leicester, England
    Posts
    165
    Plugin Contributions
    1

    Default Re: Page 404 Error on Currency Selection

    Quote Originally Posted by DrByte View Post
    How did you configure the domain redirect for www.ho-hose.net and ho-hose.co.uk to point to the same place?
    The domain redirect was done by my host on my behalf in the root .htaccess file (AFAIK). I quoted it previously.

  8. #18
    Join Date
    May 2007
    Location
    Leicester, England
    Posts
    165
    Plugin Contributions
    1

    Default Re: Page 404 Error on Currency Selection

    Quote Originally Posted by DrByte View Post
    How did you configure the domain redirect for www.ho-hose.net and ho-hose.co.uk to point to the same place?
    Here's the store configure file:
    <?php
    /* @package Configuration Settings
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php.
    The 2 files should be kept separate and not used to overwrite each other.
    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://www.ho-hose.net');
    define('HTTPS_SERVER', 'https://www.ho-hose.net');

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

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

    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', 'hoho');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', '******');
    define('DB_SERVER_PASSWORD', '*****');
    define('DB_DATABASE', '******');
    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', 'none');
    define('DIR_FS_SQL_CACHE', '/home/hohose/public_html/store/cache');
    and here's the Admin configure file:

    <?php
    /* @package Configuration Settings
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

    NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php.
    The 2 files should be kept separate and not used to overwrite each other.

    Define the webserver and path parameters
    Main webserver: eg, http://localhost - should not be empty for productive servers
    HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
    HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com
    HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.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 */
    define('HTTP_SERVER', 'http://www.ho-hose.net');
    define('HTTPS_SERVER', 'https://www.ho-hose.net');
    define('HTTP_CATALOG_SERVER', 'http://www.ho-hose.net');
    define('HTTPS_CATALOG_SERVER', 'https://www.ho-hose.net');

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

    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/hohose/public_html/store/admin/');
    define('DIR_FS_CATALOG', '/home/hohose/public_html/store/');

    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', 'hoho');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', '*****');
    define('DB_SERVER_PASSWORD', '*****');
    define('DB_DATABASE', '*****');
    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', 'none');
    define('DIR_FS_SQL_CACHE', '/home/hohose/public_html/store/cache');

    ?>

  9. #19
    Join Date
    May 2007
    Location
    Leicester, England
    Posts
    165
    Plugin Contributions
    1

    Default Re: Page 404 Error on Currency Selection

    Quote Originally Posted by DrByte View Post
    Something is clearly wrong with how you have your domains and redirects set up.

    1. http://www.ho-hose.net/ points to your old site.
    2. You have a redirect from http://www.ho-hose.net/store/ to point to your new site.
    3. Any click on a link in your store goes to www.ho-hose.net/store ...
    4. EXCEPT if you click the HOME link or change currencies ... in which case it does a URL redirect to ho-hose.co.uk/store

    5. http://www.ho-hose.net/store/?curren...ain_page=index results in 404 errors.
    But http://ho-hose.co.uk/store/index.php?currency=EUR&main_page=index works fine


    If you continue with these uncoordinated redirects, you'll have search engines dumping you in the bottom of the pile ... because your pages are served in a loop.

    In short, your problems are related to your many redirect configurations, which could be tied in part to your attempts at using SEFU mods.
    I don't want to appear to be dumb, but I relied on my host to set up the redirect to ho-hose.net so that I could iron out the creases before I went live. In your opinion has the host set this up incorrectly?

    AFAIK, the primary domain is www.ho-hose.co.uk, and typing this into your browser gets us there.

    I thought that the hohose.net redirect pointed at www.ho-hose.co.uk/store/, but it seems that you are saying that it doesn't, it in fact points to www.ho-hose.co.uk. Am I right?

    If I'm not, I don't suppose you could
    EITHER put what you are saying in such a way that I might understand it, because I regret to advise you that I don't. I'm not criticising the explanation, it's that I am just a bit dense on this redirect thing
    OR propose I strategy that I might propose to my host so that the redirect is 'straightforward' and not 'loopy'.

    One other thing, how come all the other stuff seems to work OK?
    Last edited by blag; 28 Sep 2007 at 11:30 AM.

  10. #20
    Join Date
    May 2007
    Location
    Leicester, England
    Posts
    165
    Plugin Contributions
    1

    Default Re: Page 404 Error on Currency Selection

    Quote Originally Posted by DrByte View Post
    Okay ... how come both http://www.ho-hose.net/store/ and http://ho-hose.co.uk/store/ are invalid when you have your RewriteEngine turned off ... resulting in 404 pages ?
    I suspect a reply to this is unnecessary, because subsequent posts may have made this one redundant, but... I'm sorry, I don't know the answer to this. (Not much help, eh?)

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. v150 Display 404 error page instead of 500 Internal Server Error
    By ShopVille in forum General Questions
    Replies: 1
    Last Post: 7 Dec 2012, 05:34 PM
  2. Login page gives error 404 page not found
    By g28469b in forum General Questions
    Replies: 13
    Last Post: 20 Apr 2011, 11:23 PM
  3. 404 error page
    By Semenek in forum General Questions
    Replies: 0
    Last Post: 7 Mar 2010, 10:08 AM
  4. Automatic Currency Selection for a domain
    By [email protected] in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 3
    Last Post: 5 Jun 2007, 09:38 AM

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