Site with external Javascript

Home Forums General issues Site with external Javascript

This topic contains 7 replies, has 2 voices, and was last updated by  Rogier Lankhorst 4 days, 2 hours ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #33947 Reply

    Marco

    Hi,
    The plug-in works really well. But how i can change one or more page in http ?

    Because if i have this script included in a https page don’t work:

    https://subdomain.domain.com/search

    the original resource is not in https. If possible exclude some pages of site form https in http ?

    have a solution for a external javascript ?

    All the best
    Marco

    #33948 Reply

    To have some pages not on SSL, you can use the per page plugin:

    Really Simple SSL per page

    #33949 Reply

    Marco

    Thanks. I consider this.

    and if you want to keep the site https and load an external resource in javascritpt ?

    How to allow this function ?

    #33955 Reply

    That is possible if the domain over which the javascript is loaded has an SSL certificate installed.

    For example you could load your jquery files from the googleapis.com server, which will work without any issues, because googleapis.com supports https.

    You can also download the file and insert it from your own site.

    #34026 Reply

    Marco

    Hi Rogier,

    this affiliation program don’t have a SSL for each domain. So unique possibility are load the javascript in http.
    Have a possibility for insert a mixed content in a single page ?

    Because the Single page plug-in is good if you don’t are a https site. But now i make all redirect 301 for a SEO and return to http is not a good solution.

    Thanks for support

    #34054 Reply

    You can exclude a url from the mixed content fixer using this article:

    How to exclude a url from the mixed content fixer

    This will cause browsers to give warnings about mixed content though. You won’t have the green lock anymore on pages with this URL.

    #34179 Reply

    Marco

    Thanks Rogier.

    It’s the same if this url are a subdomain ?

    function rsssl_exclude_http_url($html) {
    $html = str_replace(“https://subdomain.domain.com”, “http://subdomain.domain.com”, $html);
    return $html;
    }
    add_filter(“rsssl_fixer_output”,”rsssl_exclude_http_url”);

    #34186 Reply

    Yes, it’s just a string replacement actually. So if you enter abc in the first part, then def in the second, it replaces all abc strings to def.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Site with external Javascript
Your information: