Avideo: i have added ssl to my website and on https i am getting mixed content error

Created on 4 May 2020  路  4Comments  路  Source: WWBN/AVideo

Describe the question
Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure stylesheet ''. This request has been blocked; the content must be served over HTTPS.

where do i change to correct this. @akhilleusuggo @DanielnetoDotCom

question wontfix

Most helpful comment

1- ) First , make sure that you have changed the url on /videos/configuration.php to https://fitnesscannon.fit

2 - ) /etc/apache2/sites-available/

Add this lines ( you can google for more information ) , replace yoursite.com by your domain name

RewriteEngine on
RewriteCond %{SERVER_NAME} =yoursite.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

3 - ) If you want that all request goes to https and remove http , delete this lines from your /videos/configuration.php

if(!empty($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME']!=='localhost' && !filter_var($_SERVER['SERVER_NAME'], FILTER_VALIDATE_IP)) {
// get the subdirectory, if exists
$subDir = str_replace(array($_SERVER["DOCUMENT_ROOT"], 'videos/configuration.php'), array('',''), FILE);
$global['webSiteRootURL'] = "http".(!empty($_SERVER['HTTPS'])?"s":"")."://".$_SERVER['SERVER_NAME'].$subDir;
}else{

_Read more about this_ https://github.com/WWBN/AVideo/wiki/Redirect-http-to-https

All 4 comments

share a screenshot of what content is not handled over https

Annotation 2020-05-04 172225
if possible please access the portal www.fitnesscannon.fit and https://fitnesscannon.fit youll see the errors @DanielnetoDotCom

1- ) First , make sure that you have changed the url on /videos/configuration.php to https://fitnesscannon.fit

2 - ) /etc/apache2/sites-available/

Add this lines ( you can google for more information ) , replace yoursite.com by your domain name

RewriteEngine on
RewriteCond %{SERVER_NAME} =yoursite.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

3 - ) If you want that all request goes to https and remove http , delete this lines from your /videos/configuration.php

if(!empty($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME']!=='localhost' && !filter_var($_SERVER['SERVER_NAME'], FILTER_VALIDATE_IP)) {
// get the subdirectory, if exists
$subDir = str_replace(array($_SERVER["DOCUMENT_ROOT"], 'videos/configuration.php'), array('',''), FILE);
$global['webSiteRootURL'] = "http".(!empty($_SERVER['HTTPS'])?"s":"")."://".$_SERVER['SERVER_NAME'].$subDir;
}else{

_Read more about this_ https://github.com/WWBN/AVideo/wiki/Redirect-http-to-https

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alejandrolidon picture alejandrolidon  路  3Comments

JoshWho picture JoshWho  路  3Comments

CorpCaleCloud picture CorpCaleCloud  路  4Comments

shebanet picture shebanet  路  4Comments

hrt644 picture hrt644  路  3Comments