Results 1 to 10 of 16

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    NM
    Posts
    750
    Plugin Contributions
    1

    help question shared ssl and links

    I'm using 1.3.8a and have a problem with external link coding but don't want to post my url because in the past it has overloaded the server.

    I've read Dr Byte's article about shared ssl and also about IE warnings of secure and non-secure items but I either don't understand how to do this or hope someone knows of a work around.

    I guess my question is this: IS IT POSSIBLE TO CHANGE THE URL IN THE CONFIG FILE TO REFLECT THAT THE STORE IS IN A FOLDER WITHIN THE SITE AND BE ABLE TO GET THE SSL PAGES TO RESPECT THE RELATIVE URLS IN THE HEADERS DROP DOWN MENU TO PAGES OUTSIDE OF THAT FOLDER...and how?

    As the code shows below the url to our store is in a subfolder. My header and drop down menu at the shop works beautifully...except the hardcoded urls seem to be triggering the dreaded ie browser warnig that there are secure and non secure items. When i use relative links they take on the https and trigger the ie warning and page doesn't load properly. Might a solution be to re-write the path to the store in the configure file? Any help appreciated.

    Code:
    // Define the webserver and path parameters
      // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
      // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
      define('HTTP_SERVER', 'http://mysite.com');
      define('HTTPS_SERVER', 'https://www.ssl.com/username');
    
      // 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', '/Shop/');
      define('DIR_WS_HTTPS_CATALOG', '/Shop/');
    
      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', 'D:/Inetpub/username/Shop/');
    
      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/');

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

    Default Re: shared ssl and links

    Based on your example ...

    1 if the secure certificate uses www then you need www on all URLs

    2 if your Zen Cart runs in a subdirectory, such as /fred then use /fred and not /Fred ... no one remembers to uppercase anything in an URL ...

    3 use FireFox and click the broken lock and look at the Media tab to see if something not SSL is being called on secure pages ...

    4 check if you have calls to other servers that are not SSL on SSL pages ...

    5 if this only happens on submit buttons and not on links this is due to the change from secure to non-secure and either you need to customize the code for this or live with it for now, this is being addressed for a future release that should eliminate this problem ...

    Without actually seeing your site ... I can only guess at any other issue causing this ...
    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
    Feb 2006
    Location
    NM
    Posts
    750
    Plugin Contributions
    1

    Default Re: shared ssl and links

    Ajah, thanks. I will pm my url if you have a chance to take a look.

    The zen article linked above states the ie warning is due to hard coded links.

    My css menu along the top of my store that links to files outside of the store file have been hardcoded like this or they don't work on secure pages:

    Code:
    <a href="http://www.mysite.net/Articles/index.html">ARTICLES</a>
    When I write them like this:

    Code:
    <a href="/Articles/index.html">ARTICLES</a>
    they work thougout the store on the non-secure pages but on the secure pages zencart puts the ssl prefix like this which leads to nowhere:

    Code:
    https://www###.ssl.com/Articles/index.html
    I am somewhat familiar with the Apple template drop down menu and am wondering if coding my menu in such a way as it does the links is what I am in for to make this work without triggering the ie warning - or would that work at all..I don't understand the priciples governing this, obviously.

    I don't use easy pages because our site is ten years old and has hundreds of pages outside the store that i've labored over to update over the years so that they validate. I'd never find the time.

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

    Default Re: shared ssl and links

    And if you wrote them like this:
    <a href="../Articles/index.html">ARTICLES</a>
    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!

  5. #5
    Join Date
    Feb 2006
    Location
    NM
    Posts
    750
    Plugin Contributions
    1

    Default Re: shared ssl and links

    Thanks Linda...then it does this:

    Code:
    https://www##.ssl.com/username/Articles/index.html

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

    Default Re: shared ssl and links

    Do you actually have two headers for when you are in your shop and when you are not in your shop? Or is this a shared header?
    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!

 

 

Similar Threads

  1. Hostmonster and shared SSL problem
    By GoldBuckle in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 9 Jul 2009, 08:59 PM
  2. Using HostGator and Shared SSL, Secure and Unsecure Items?
    By daxxruckus in forum Basic Configuration
    Replies: 14
    Last Post: 30 Dec 2008, 08:01 AM
  3. Shared SSL and Subdomain
    By TecBrat in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 12 Nov 2008, 08:53 PM
  4. Shared SSL and JROX
    By aalm in forum General Questions
    Replies: 4
    Last Post: 23 Oct 2008, 09:37 PM
  5. Shared SSL issue and Plesk
    By pcmt in forum Installing on a Linux/Unix Server
    Replies: 15
    Last Post: 14 Aug 2006, 07:52 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