https://www.icyphoenix.com/viewtopic.php?f=2&t=9588 ----------------------------------- PlayerX Sun 12 Jun, 2016 08:11 [SSL] Problems With Images And HTTP/HTTPS ----------------------------------- Version: 2.2.0.105 (new installation) Web: https://battlefield-ng.com I found several problems viewing images with SSL certificate, attach the photos to see. If I find more problems with images, I'll put it here. I follow his project for years, I like the way you have and the styles. ----------------------------------- mort Sun 12 Jun, 2016 09:32 Re: [SSL] Problems With Images And HTTP/HTTPS ----------------------------------- [b][i]I'm not sure about this but I got it from Google..[/i][/b] ;) Try adding [b][color=red]ONLY ONE OF THESE[/color][/b] to your .htaccess file [b]AFTER[/b]: RewriteEngine On [b]ADD:[/b] [code linenumbers=false]RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301][/code] [b]OR[/b] [code linenumbers=false]RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L][/code] You may lock yourself out and have to clear your browser cache. :mrgreen: ----------------------------------- Informpro Sun 12 Jun, 2016 20:58 Re: [SSL] Problems With Images And HTTP/HTTPS ----------------------------------- I think the best way would actually to use links without "http", as in "://imgur.com/...". I think it should work. ----------------------------------- PlayerX Sun 12 Jun, 2016 23:24 Re: [SSL] Problems With Images And HTTP/HTTPS ----------------------------------- The original idea is to look and fix them manually, but can not find. I had solved temporarily "Redirect permanent" but was not the same. I want to change it and try to put something like: [CODE]$server_protocol = ($config['cookie_secure']) ? 'https://' : 'http://';[/CODE] [hr] Fixed 1 of 3: File: includes/functions_bbcode.php - Line 91 (smilies of "Quick Reply") [CODE] 'URL' => 'http://' . $host . $config['script_path'] . $config['smilies_path'] . '/' . $row['smile_url'], [/CODE] ----------------------------------- mort Mon 13 Jun, 2016 03:53 Re: [SSL] Problems With Images And HTTP/HTTPS ----------------------------------- [quote user="PlayerX" post="60484"] File: includes/functions_bbcode.php - Line 91 (smilies of "Quick Reply") [CODE] 'URL' => 'http://' . $host . $config['script_path'] . $config['smilies_path'] . '/' . $row['smile_url'], [/CODE][/quote] We've also got functions_post.php [b]Line 729:[/b] [code linenumbers=false]'SMILEY_IMG' => 'http://' . $host . $config['script_path'] . $config['smilies_path'] . '/' . $rowset[$i]['smile_url'],[/code] And if we change it to the "relative" path. [code linenumbers=false]'SMILEY_IMG' => './' . $config['smilies_path'] . '/' . $rowset[$i]['smile_url'],[/code] It should work. There's also this to deal with: [b]class_cache_extends.php[/b] [code linenumbers=false] function obtain_smileys($from_cache = false) { global $db, $config; if (($smileys = $this->get('_smileys')) === false) { $smileys = array(); $smileys_path = create_server_url() . $config['smilies_path'] . '/'; $sql = "SELECT code, smile_url FROM " . SMILIES_TABLE . " ORDER BY smilies_order"; $result = $from_cache ? $db->sql_query($sql, 0, 'smileys_') : $db->sql_query($sql); while ($row = $db->sql_fetchrow($result)) { $smileys[] = array( 'code' => $row['code'], 'replace' => '' ); } $db->sql_freeresult($result); $this->put('_smileys', $smileys); } return $smileys; } [/code] I don't know if there is a global way to change all of this, so MG or informpro would be the ones to help sort this out.. ;) ----------------------------------- PlayerX Mon 13 Jun, 2016 04:38 Re: [SSL] Problems With Images And HTTP/HTTPS ----------------------------------- Already solved thanks to github :P ----------------------------------- Informpro Mon 13 Jun, 2016 18:07 Re: [SSL] Problems With Images And HTTP/HTTPS ----------------------------------- If you have a patch you want to submit, that'd be sweet! ----------------------------------- Mighty Gorgon Wed 22 Jun, 2016 20:23 Re: [SSL] Problems With Images And HTTP/HTTPS ----------------------------------- Thanks for reporting. I will fix everything if you could help to keep track of all the changes. ----------------------------------- PlayerX Wed 29 Jun, 2016 04:57 Re: [SSL] Problems With Images And HTTP/HTTPS ----------------------------------- Recommend that when installing IP, place a checkbox for SSL, because it would have to change within mysql. 'cookie_secure' ----------------------------------- Mighty Gorgon Sat 30 Jul, 2016 22:45 Re: [SSL] Problems With Images And HTTP/HTTPS ----------------------------------- [quote user="PlayerX" post="60562"]Recommend that when installing IP, place a checkbox for SSL, because it would have to change within mysql. 'cookie_secure'[/quote] Thank you for the suggestion, I'll try to check if I can do that automatically. ----------------------------------- Cristianita Mon 30 Apr, 2018 06:47 Re: [SSL] Problems With Images And HTTP/HTTPS ----------------------------------- [quote user="PlayerX" post="60562"]Recommend that when installing IP, place a checkbox for SSL, because it would have to change within mysql. 'cookie_secure'[/quote]I'm sorry... I did it, but it didn't work... [img]http://easycaptures.com/fs/uploaded/1120/5350261386.png[/img]