Https Validation / Mixed Content from CSS


  • Dennis
    Newbie
     
    27 points

    Hi, i think a lot of webmaster actualy move to https – anyone solve the “Mixed Content” Problem – http elements on https sites

    I think some of the requests come from the css

    samples
    http://fonts.googleapis.com/css?family=Open+Sans:400,700
    loaded over HTTPS, but requested an insecure stylesheet ‘http://fonts.googleapis.com/css?family=Open+Sans:400,700’. This request has been blocked; the content must be served over HTTPS.

    Failed to decode downloaded font: https://fonts.gstatic.com/stats/Roboto/normal/500

    At which point we can change the path of this files?


    Jason
    Jason
    Titan
     
    654 points

    @ Hemanta Chakladar, not enough info

    Where is this file located ?


    Jason
    Jason
    Titan
     
    654 points

    Here is the info, may need to update this every time there is a theme update unless fixed from Mark fail

    Attachments:
    You must be logged in to view attached files.

    Josh
    Josh
    Super Guru
     
    13,888 points

    Tony
    Newbie
     
    50 points

    This is a very handy site to use for this type of issue:

    https://www.whynopadlock.com/



    Mickaël
    Newbie
     
    6 points

    Hello,

    After installing a certificate for your website, simply redirect http to https. You do that with .htaccess file. Even if users type “http://www….”, it will be automatically redirected to https://www….).

    you add this to .htacces:
    # redirection from http to HTTPS
    RewriteCond %{SERVER_PORT} ^80$
    RewriteRule ^(.*)$
    https://%{SERVER_NAME}%{REQUEST_URI} [L,R]


    Josh
    Josh
    Super Guru
     
    13,888 points

    Thanks for sharing Mickaël :)


Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.