We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Website to https help please | Forum

Topic location: Forum home » Support » General Questions
Mikhael
Mikhael Dec 25 '16
I turn my site to https, site is work, but images and  JS did't work
And browser said that i have not sertified content (like images) to get from http

if i turn define('OW_URL_HOME' into https browser did't show site (site is down) and said that i have loop requests... (Wrong redirect on the page - on firefox, and The website  performed the redirect too many times -in Opera..

what i do wrong?
UPD1
path on site like https://site/<path to piwik analytics (not plugin)> is work fine with https

UPD2
i set site to dev mode and clean cache and after set to dev =false
nothing changed...

UPD3
if i write to htaccess
RewriteCond %{REQUEST_URI} !file.html
file from browser https://<site>/file.html open fine!


UPD4.
I write to my system administrators and they said that i must clear cache. I did it in UPD2.
 
UPD5
To stay site alive (in a part) i do:
define('OW_URL_HOME', 'http://<mysite>; - stay as it was
turn static to https
define('OW_URL_STATIC', 'https://<mysite>;
this is a temporary solution...


 
The Forum post is edited by Mikhael Dec 26 '16
Jerry Chen
Jerry Chen Dec 26 '16
i have the same issue.

It used to work fine with but after my server provider did some upgrades and changes, then it stopped working and showed ERR_TOO_MANY_REDIRECTS


If I changed back to define('OW_URL_HOME', 'http://<mysite>;

It worked again.

By the way I use CloudFlare as well.


Really don't know what caused this problem...

Mikhael
Mikhael Dec 27 '16
developers do not respond :(

UPD6.
I create new one define:
define('OW_URL_HOME', 'http://<myite>;');
define('OW_URL_HOMEA', 'https://<mysite>;');

and search errors and replace HOME to HOMEA to find what do redirects... may be i get it.

Mikhael
Mikhael Dec 27 '16
First i find. File: Application.php
When i change OW_URL_HOME to OW_URL_HOMEA this make redirects.
In other places changes to OW_URL_HOMEA work fine.

----------------
 $urlArray = parse_url(OW_URL_HOME);

        if ( !empty($urlArray["scheme"]) )
        {
            $homeUrlSsl = ($urlArray["scheme"] == "https");

            if ( ($isSsl && !$homeUrlSsl) || (!$isSsl && $homeUrlSsl) )
            {
                $this->redirect(OW_URL_HOME . OW::getRequest()->getRequestUri());
            }
        }

----------------
Mikhael
Mikhael Dec 27 '16
yes. this is it.
If a change OW_URL_HOME in this code to 'http://<mysite>;' all works fine.
dave Leader
dave Jan 5 '17
Mikhael, are you using cloudflare?  Many times the features you use for cloudflare can cause issues such as this.  Also what kind of cert do you have and where did you get it from?  Some cheap certs work quite differently than normal certs?


Just so you know, i have a Oxwall site with HTTPS and i the only issues i had was with using cloudflare. After turning off some features in cloudflare all was well. 

The Forum post is edited by dave Jan 5 '17
Aline
Aline Jan 17 '17
hi guys.. i need help for https Not secure site images.. on news feed, blog, forum, events.. when i paste i image link in (http://) The site continues in https but it happens to be an unsafe site in the ssl certificate. If I remove the image the site is once again a safe site... how to paste a image in from other site Without losing site security ssl?? thanks..
Aline
Aline Jan 17 '17
hi guys.. can you see this forum page are not securet now!! check the url of this forum!! ssl break down!! because i did copy and paste this image here! same problem in my site! how to fix this??

Mikhael
Mikhael Jan 18 '17
hi. I think ssl didn't break down. It's yellow because page containing not secure content.
http://www.w3schools.com/css/trolltunga.jpg
It's normal.
Do not use embedded images or use it only from secure site, like Instagram or other...
I think that the certification task is just to show users that there are unsafe content