Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2006
    Posts
    43
    Plugin Contributions
    0

    Default Lotsa problems with front page

    Hi there,

    First i needed a front page to my store.

    tried with the htaccess file to redirect the index.php to splashpage.php but each time i changed the currency on the index.php page, it redirected me towards the splash page, which was not what i wanted.

    So i decided to move all my files to a folder called store, on my root level. Outside the store folder, i only have the splashpage.php file renamed index.php.

    Of course, i changed the 2 configure.php files accordingly. I may have made some errors though, so i'll join the file here.

    Now, all the links to my ezpages and other products pages are broken. When i click whatever ezpages link, funny enough, it brings me back to the splashpage.php file. I dont get it.

    I need to fix this fast.

    Does anyone can help me with this hell of a problem?

    thanks

    Code:
    <?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
     */
    
    
    // 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.mahadevidesign.com');
      define('HTTPS_SERVER', 'https://www.mahadevidesign.com');
    
      // Use secure webserver for checkout procedure?
      define('ENABLE_SSL', '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_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', '/store/');
    
    // * 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/mahadevi/mahadevidesign.com/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', 'devi_');
      define('DB_SERVER', '------------');
      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', 'database'); 
      define('DIR_FS_SQL_CACHE', '/home/mahadevi/mahadevidesign.com/store/cache');
    
    ?>

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Lotsa problems with front page

    It looks like your shop is in the root of your server and not in the subdirectory ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Lotsa problems with front page

    Did you change your htaccess again?

  4. #4
    Join Date
    Oct 2006
    Posts
    43
    Plugin Contributions
    0

    Default Re: Lotsa problems with front page

    thanks for answering Ajeh.

    So how can you tell that you think my shop is in the root rather than in the store subdirectory?

    And Afo, yes, i've corrected the htaccess file and it is now like it was before.

  5. #5
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Lotsa problems with front page

    I only asked because I know how easy it is to miss the obvious. I've done it enough times myself.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Lotsa problems with front page

    Quote Originally Posted by jeanmichel View Post
    thanks for answering Ajeh.

    So how can you tell that you think my shop is in the root rather than in the store subdirectory?

    And Afo, yes, i've corrected the htaccess file and it is now like it was before.
    If I go to your domain I appear to get your shop ...

    If I go to /store I get an empty directory ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Oct 2006
    Posts
    43
    Plugin Contributions
    0

    Default Re: Lotsa problems with front page

    oh yes, that's because i couldnt let the site broken so i just reverted the problem back to normal.

    As you've seen, there is no splash page to the site...

    I dont have a test site for this one so, ideally, i'd have to know the answer to the problem before changing anything.

  8. #8
    Join Date
    Oct 2006
    Posts
    43
    Plugin Contributions
    0

    Default Re: Lotsa problems with front page

    Now, my entire shop is back in the store folder and the only files that are on my root is the splashPage.php named splashPage.php.

    Also, i've created a .htaccess file on the root that set the directoryIndex to splashPage.php.

    In the store folder, there is an .htaccess files that set the directoryIndex to store/index.php.

    So here is the error message displayed when i request any of my ezpages or links.

    Code:
    The requested URL /index.php was not found on this server.
    
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    Seems like when requested, the links to the ezpages are calling index.php while they are supposed to called for store/index.php.

    try and see here mahadevidesign.com

    Here is my configure.php file:
    Code:
    <?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
     */
    
    
    // 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.mahadevidesign.com');
      define('HTTPS_SERVER', 'https://www.mahadevidesign.com');
    
      // Use secure webserver for checkout procedure?
      define('ENABLE_SSL', '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_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', '/store/');
    
    // * 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/mahadevi/mahadevidesign.com/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', 'devi_');
      define('DB_SERVER', '----.---.----');
      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', 'database'); 
      define('DIR_FS_SQL_CACHE', '/home/mahadevi/mahadevidesign.com/store/cache');
    
    ?>
    thanks
    Last edited by jeanmichel; 26 May 2007 at 05:16 AM.

 

 

Similar Threads

  1. Problems with design of store front
    By mshigh13 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 13 Nov 2009, 01:08 AM
  2. Front page or main page layout - start with certain category
    By gloerick in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Aug 2009, 07:07 AM
  3. lotsa products, 1 price
    By Namtaru in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Mar 2008, 07:05 AM
  4. Newsletter Compatiable with MS Front Page
    By CoolCarPartsOnline in forum General Questions
    Replies: 4
    Last Post: 28 Feb 2008, 05:39 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