Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    12
    Plugin Contributions
    0

    Default Home link pointing to www. not just http://

    Hi all, i signed up awhile ago, but until now i found all the answers i needed covered by previous threads

    But i'm having a very minor problem, its not much a big deal, but i'd like to get it fixed if possible.

    Basically, my 'home' link goes to http://mydomainname.com rather than http://www.mydomainname.com, and i'd like it to point to the latter

    In /includes/configure.php i changed :
    HTTP_SERVER
    HTTPS_SERVER

    In /admin/includes/configure.php i changed:
    HTTP_SERVER
    HTTPS_SERVER
    HTTP_CATALOG_SERVER
    HTTPS_CATALOG_SERVER


    So those then had the http://www. infront rather than just http://

    After doing that, the home link pointed to the right thing, but the problem was, whenever i tried to login, it wouldn't do anything. It just went back to the home page without actually logging in..

    I guess i need to change another thing but i can't figure out what that would be, can anyone help me with this?

    Cheers

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

    Default Re: Home link pointing to www. not just http://

    What are your Session Settings?
    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
    Nov 2006
    Posts
    12
    Plugin Contributions
    0

    Default Re: Home link pointing to www. not just http://

    My session settings are :

    Session directory - /var/www/vhosts/mydomainname.com/httpdocs/cache
    Cookie Domain - True
    Force Cookie Use - False
    Check SSL Session ID - False
    Check User Agent - False
    Check IP Address - False
    Prevent Spider Session - True
    Recreate Session - True
    IP to Host Conversion Status - True

    I tried putting www. infront of the domain in the session directory, but it didnt change anything
    Last edited by ozminiatures; 9 Feb 2007 at 02:01 AM.

  4. #4
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Home link pointing to www. not just http://

    Please post the includes/configure.php without your passwords.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Nov 2006
    Posts
    12
    Plugin Contributions
    0

    Default Re: Home link pointing to www. not just http://

    Ok here it is :

    <?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://ozminiatures.com');
    define('HTTPS_SERVER', 'https://ozminiatures.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', '/var/www/vhosts/ozminiatures.com/httpdocs/');

    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', '*****');
    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', '/var/www/vhosts/ozminiatures.com/httpdocs/cache');

    ?>

  6. #6
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Home link pointing to www. not just http://

    HTML Code:
    define('HTTP_SERVER', 'http://ozminiatures.com');
    define('HTTPS_SERVER', 'https://ozminiatures.com');
    Change the above lines to include the www. You will need to change your admin/includes/configure.php the same way.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 

Similar Threads

  1. Problem with pointing to http://www.mydomain.com
    By lindanewbie in forum Basic Configuration
    Replies: 1
    Last Post: 7 Mar 2011, 10:36 AM
  2. How do I make Zen Cart include www instead of just http?
    By princess_care in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Feb 2009, 04:40 AM
  3. site not found using http://www. but fine without www.
    By monkeymadness in forum General Questions
    Replies: 2
    Last Post: 8 Feb 2009, 09:02 AM
  4. changing the checkout link to http://www...
    By ursogrande in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Oct 2008, 05:59 AM
  5. http:// not www.
    By Mark C in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 8 Jun 2007, 05:19 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