Forum Archive - HTTPS Insecure Content Blocked

HTTPS Insecure Content Blocked
Sep 23, 2013 5:04 pm by cagerattle
Hello, I sent an email, but never got a response. On https://www.csregional.com/ the plugin translates the content, but all of the css, js, etc links get changed to http:// and are then blocked. See: https://www.csregional.com/ko/ The Wordpress and Site Addresses are both set to: https://www.csregional.com Here is the htaccess content: # BEGIN s2Member GZIP exclusions <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+ RewriteRule .* - [E=no-gzip:1] </IfModule> # END s2Member GZIP exclusions # BEGIN WordPress <IfModule mod_rewrite.c> # gtranslate config RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)/(.*)$ /$1/$3 [R=301,L] RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)$ /$1/ [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA] RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA] RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Debug Info: * About to connect() to www.csregional.com port 80 (#0) * Trying 75.126.12.215... * connected * Connected to www.csregional.com (75.126.12.215) port 80 (#0) > GET /our-team/ HTTP/1.1 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.65 Safari/537.36 Host: www.csregional.com Accept: */* Cookie: PHPSESSID=7qevbi9njf9v91ua1tm82mt452 < HTTP/1.1 200 OK < Date: Mon, 16 Sep 2013 19:33:57 GMT < Server: Apache < Expires: Thu, 19 Nov 1981 08:52:00 GMT < Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 < Pragma: no-cache < X-Pingback: https://www.csregional.com/xmlrpc.php < X-Powered-By: PleskLin < Connection: close < Transfer-Encoding: chunked < Content-Type: text/html; charset=UTF-8 < * Closing connection #0 Please get back to be as soon as you can. Thank you!
Re: HTTPS Insecure Content Blocked
Sep 23, 2013 8:01 pm by Yana
Hi, Please try to use absolute URLs for CSS, JavaScript . Also please check your webiste for html validation errors and fix end tag errors You can use validator.w3.org to check your website .. http://validator.w3.org/check?uri=https ... ne&group=0
Re: HTTPS Insecure Content Blocked
Sep 23, 2013 9:18 pm by cagerattle
I fixed all of the validation errors and still have the same problem. All of the url's use wordpress php calls like: <?php bloginfo( 'stylesheet_url' ); ?> and <link rel="stylesheet" href="<?php echo esc_url( THEME_URI . '/shortcodes.css' ); ?>" type="text/css" media="screen" /> THEME_URI is defined as the following: define( 'THEME_URI', get_template_directory_uri() ); All of these work php calls work when the site is in the native language, English. For some reason the https links are being overwritten by http.
Re: HTTPS Insecure Content Blocked
Sep 23, 2013 10:15 pm by Edvard
Hi, It seems that the internal request for the original content which should be translated later goes through port 80 and in that case Wordpress outputs http instead of the https for the links. GTranslate tries to detect the protocol using $_SERVER['SERVER_PROTOCOL'] variable before sending the request for the original content. If it is not set in your environment or it is set to a wrong value then that can be the reason. To avoid that you need to make sure that $_SERVER['SERVER_PROTOCOL'] is being set correctly or make the path for your css/js files protocol independent. For example you can use href="//www.domain.com/..." instead of href="https://www.domain.com/..." Let me know. Thanks!
Re: HTTPS Insecure Content Blocked
Sep 24, 2013 1:46 am by cagerattle
Got it fixed, thanks!
Re: HTTPS Insecure Content Blocked
Sep 24, 2013 8:26 am by Edvard
Thank you! Can you share what you did?
Re: HTTPS Insecure Content Blocked
Sep 24, 2013 3:15 pm by cagerattle
Sure, We added the following to the config.php file: if ($_SERVER['HTTPS']) { $_SERVER['SERVER_PROTOCOL'] = 'HTTPS'; } return; echo '<pre>'; print_r($_GET); print_r($_SERVER); exit;
Re: HTTPS Insecure Content Blocked
Sep 24, 2013 3:16 pm by Edvard
Thank you! It was a pleasure providing you support!

SIMILAR TOPICS

https configApr 16, 2018 5:54 pmReplies: 1Post by: fxbotmarket
http and https...which???Nov 2, 2017 2:25 pmReplies: 5Post by: dios10
Images not served on https pageNov 11, 2016 7:38 amReplies: 18Post by: sadashiv
HTTPS NET::ERR_CERT_AUTHORITY_INVALIDMay 18, 2017 7:32 amReplies: 13Post by: gdurand
Use Gtranslate Free over httpsJul 21, 2014 9:49 pmReplies: 126Post by: cellwise

Try GTranslate with a free 15 day trial