Concrete5 and HTTPS error in dashboard

Permalink
Hi!

My site is working on HTTPS (not on HTTP).

When I try to edit Page Properties or change Design of Page in Sitemap inside Dashboard and click "Save" I see infinite loading animation.

When I open Console at Chrome Developer Tools I see:
Blocked a frame with origin "https://*****.ru" from accessing a frame with origin "http://*****.ru". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.

Please help me.

P.S. Concrete5 v. 5.6.1.2

Cravener
 
Cravener replied on at Permalink Reply
Cravener
I try to do some changes:

Lines added to /config/site.php
define('REDIRECT_TO_BASE_URL', false);
define('BASE_URL', 'https://*****.ru');
define('BASE_URL_SSL', 'https://*****.ru');


My server do not provide $_SERVER['HTTPS'] but provide $_SERVER["HTTP_X_HTTPS"]

And changed index.php for forced redirection to HTTPS
<?php
if($_SERVER["HTTP_X_HTTPS"] != 1) {
   header("Location:http://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]);
   exit();
}
require('concrete/dispatcher.php');


But when I try to access to (for example)
https://*****.ru/index.php/tools/required/i18n_js...
$_SERVER["HTTP_X_HTTPS"] is not set.
This problem with all requests what ended with js, css, jpg, png...
This cause to infinite redirect loop error.
Cravener replied on at Permalink Reply
Cravener
As I can see - problem with configuration of Apache Web Server.
Cravener replied on at Permalink Reply
Cravener
Problem solved.

Check for SSL need to be via ENV:HTTPS not HTTPS

.htaccess:
RewriteEngine on
RewriteCond %{ENV:HTTPS} !1
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
Auditore1 replied on at Permalink Reply
<a href="https://www.concrete5.org/community/forums/chat/help-newbie-seo/#955052" title="nice post" rel="nofollow">nice post</a>
Auditore1 replied on at Permalink Reply
hello guys

https://en.wikipedia.org/wiki/John_the_Apostle
.
ronnyskog replied on at Permalink Reply
This worked for my site

RewriteEngine On
RewriteCond %{HTTPS} !=on [OR]
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)
RewriteRule ^http://www.%1%{REQUEST_URI} [R,L]