Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default How do I change the image url to https://?

    I'm still getting the "some items on this page are insecure" in IE.

    I've changed both configure.php files.

    I'm using imagehandler 2, could that be the problem?

    Thanks,

    JP

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

    Default Re: How do I change the image url to https://?

    John -

    Why are you trying to run the whole site SSL?
    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
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: How do I change the image url to https://?

    Code:
    <!--eof- banner #6 display -->
    </body><script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-1686170-1";
    urchinTracker();
    </script>
    </html>
    .

    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. #4
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default Re: How do I change the image url to https://?

    Thanks Doc!

    Kim, in IE 7. When people surf the site every single page says that some items are unsecured. It's annoying having to turn this off all the time.

    It's driving my wife crazy, she's mentioned it three times today. My marital bliss is getting tarnished. haha.


    Is there a better way?

    Thanks,

    JP

  5. #5
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default Re: How do I change the image url to https://?

    DrByte,

    Is that code for me? Please explain how that would fix my problem.

    Thanks,

    JP

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: How do I change the image url to https://?

    No, I was pointing out "what" your problem is.

    If you run Zen Cart normally, it will auto-switch in to SSL mode on pages that need it.

    However, if you have hard-coded http: addresses in src tags on your site, then any SSL pages will show warnings about those non-SSL src addresses.

    Fix those src addresses, and then your SSL pages will work fine.
    .

    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.

  7. #7
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default Re: How do I change the image url to https://?

    Ok,

    Apparently I can't change the url http://www.google-analytics.com/urchin.js because then the script no longer works.

    I've now reconfigured my configure.php to the following.


    Site configure.php
    Code:
     
      define('HTTP_SERVER', 'http://birdoasis.com');
      define('HTTPS_SERVER', 'https://birdoasis.com');
    Admin configure.php
    Code:
      define('HTTP_SERVER', 'http://birdoasis.com');
      define('HTTPS_SERVER', 'https://birdoasis.com');
      define('HTTP_CATALOG_SERVER', 'http://birdoasis.com');
      define('HTTPS_CATALOG_SERVER', 'https://birdoasis.com');
    Any other suggestions other than removing the google-analytics.com code?

  8. #8
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default Re: How do I change the image url to https://?

    Well that seems to have worked.

    The popup message is gone, but I have to wonder why it showed up in the first place, and what problems have I cause by fixing this one.

    In my next life I want to be a programer, but I'm starting to wonder if being a dog would be more relaxing.

    JP

  9. #9
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: How do I change the image url to https://?

    Quote Originally Posted by birdoasis View Post
    Apparently I can't change the url "http://www.google-analytics.com/urchin.js" because then the script no longer works.

    ...

    Any other suggestions other than removing the google-analytics.com code?
    You could change it to be https: instead of http:
    Or you could use one of the GA mods that has code written to flip the URL if the shop is on an SSL page.
    Or you could add an IF/ELSE statement around the code to show the right protocol when using SSL. An abbreviated version would be to replace the 'http:' in the google URL with this:
    Code:
    src="<?php echo ($request_type == 'SSL' ? 'https://ssl.' : 'http://www.'); ?>google-ana...
    .

    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.

  10. #10
    Join Date
    Dec 2006
    Location
    Sydney, Australia
    Posts
    4
    Plugin Contributions
    0

    Default Re: How do I change the image url to https://?

    Google Analytics does serve up its JS file from a secure location.

    The html for this is as follows, just replace the relevant line in your html!

    HTML Code:
    <script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script>

 

 

Similar Threads

  1. v151 with ultimate seo Url,how to change the ez-page url ?
    By whywell in forum General Questions
    Replies: 1
    Last Post: 17 Jan 2013, 09:12 AM
  2. How do I change the URL for the Home link on my custom template?
    By derpe2 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 31 Aug 2009, 10:11 PM
  3. How do I change the home URL?
    By onejimb in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 31 May 2009, 02:40 AM
  4. How to change the site URL
    By jenclark in forum Basic Configuration
    Replies: 4
    Last Post: 10 Jul 2008, 12:44 PM
  5. How do I change the image url?
    By birdoasis in forum General Questions
    Replies: 2
    Last Post: 28 Sep 2007, 02:42 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