Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Feb 2006
    Posts
    70
    Plugin Contributions
    0

    links go to http instead of https (page not found)

    Hello there!

    Fresh install & all my links in the store and admin section point to http instead of https, causing a page not found error. If I manually add the "s" to the URL, the correct pages are always there. I thought my config looked right, but I guess not? Config file is below.

    Appreciate your help!
    S

    define('HTTP_SERVER', 'http://www.mysite.com');
    define('HTTPS_SERVER', 'https://www.mysite.com');
    define('HTTP_CATALOG_SERVER', 'http://www.mysite.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.mysite.com');

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

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

    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', '/var/www/vhosts/mysite.com/httpsdocs/boxoffice/admin/');
    define('DIR_FS_CATALOG', '/var/www/vhosts/mysite.com/httpsdocs/boxoffice/');

    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', 'zen_');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'private');
    define('DB_SERVER_PASSWORD', 'private);
    define('DB_DATABASE', 'mydb');
    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', '/var/www/vhosts/mysite.com/httpsdocs/boxoffice/cache');

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: links go to http instead of https (page not found)

    Without seeing the real URL it is nearly impossible to diagnose.
    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.

  3. #3
    Join Date
    Feb 2006
    Posts
    70
    Plugin Contributions
    0

    Default Re: links go to http instead of https (page not found)

    Sorry, didn't realize that. Here's the info again, with the URL:

    */
    define('HTTP_SERVER', 'http://www.reelasian.com');
    define('HTTPS_SERVER', 'https://www.reelasian.com');
    define('HTTP_CATALOG_SERVER', 'http://www.reelasian.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.reelasian.com');

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

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

    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', '/var/www/vhosts/reelasian.com/httpsdocs/boxoffice/admin/');
    define('DIR_FS_CATALOG', '/var/www/vhosts/reelasian.com/httpsdocs/boxoffice/');

    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', 'zen_');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'private');
    define('DB_SERVER_PASSWORD', 'private');
    define('DB_DATABASE', 'private');
    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', '/var/www/vhosts/reelasian.com/httpsdocs/boxoffice/cache');

  4. #4
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: links go to http instead of https (page not found)

    Well, when I go to your website address I can only get it at the https address, and get a 'File Not Found' error at http://

    Perhaps your hosts use one of those rubbish two-folder systems where you have an httpdocs and a separate httpsdocs folder?

    Vger

  5. #5
    Join Date
    Feb 2006
    Posts
    70
    Plugin Contributions
    0

    Default Re: links go to http instead of https (page not found)

    Yes, my host does have a 2 folder system. Ack! What can I do?

    Thanks for your help!

  6. #6
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: links go to http instead of https (page not found)

    Well, you can tell your hosts to go back to the Plesk server setup screens, and tell them that this time they should tick the box that aliases the httpsdocs folder to the httpdocs folder.

    Alternatively, you can keep a complete copy of all files/folders in the httpsdocs folder, and keep another copy, but minus the 'admin' folder, in the httpdocs folder.

    Vger

  7. #7
    Join Date
    Feb 2006
    Posts
    70
    Plugin Contributions
    0

    Default Re: links go to http instead of https (page not found)

    Ah, thank you! Can I just copy the folders from https to http or do a fresh installation of everything onto http?

  8. #8
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: links go to http instead of https (page not found)

    Given that the site is at the moment only available on https:// I'd suggest copying the httpsdocs folder to http docs (minus the admin folder which would then only be available via https://).

    Vger

  9. #9
    Join Date
    Feb 2006
    Posts
    70
    Plugin Contributions
    0

    Default Re: links go to http instead of https (page not found)

    Thanks for all the help Vger!

    I've copied everything but am now getting errors on every page. Variations of: "open_basedir restriction in effect" (ex. http://www.reelasian.com/boxoffice/)

    When I'm in the admin area, every link tries to move me from https to http (causing errors).

    Not sure what to try next.

  10. #10
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: links go to http instead of https (page not found)

    Okay, when hosts use PHP in Safe Mode that can mean very little inconvenience, or it can mean that they make it impossible for you to run a dynamic php based website.

    When the latter happens it is usually because they don't know what they are doing, and apply restrictions to every single folder. This looks to be the case wih your site.

    It's my view that your only real choice is to move hosts.

    Vger

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Setting a particular page to use HTTP instead of HTTPS????
    By SaraiSarai in forum General Questions
    Replies: 9
    Last Post: 27 Apr 2012, 06:01 PM
  2. Replies: 3
    Last Post: 12 Nov 2008, 04:07 PM
  3. SSL works but all links remain http not https
    By spriggig in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Oct 2008, 08:10 AM
  4. Many http links in https pages
    By Brian1234 in forum General Questions
    Replies: 4
    Last Post: 11 Mar 2008, 03:18 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