Fermé

Serve yii assets contents via https and fix mixed content SSL security issue

I am trying to force https only on one page of a YII framework website, and let the rest of the pages be http. The page that would be forced https is

[url removed, login to view]

The following creates what I desire, but with a mixed content error. Furthermore, when I go from the mixed content tab to any other tab, it doesn't automatically become http. It takes the movement to one more tab to reach http status.

RewriteEngine On

# Go to https

RewriteCond %{HTTPS} off

RewriteCond %{QUERY_STRING} ^r=user/profile$ [NC]

RewriteRule ^(index\.php)$ [url removed, login to view]$1 [R,L]

# Go to http

RewriteCond %{HTTPS} on

RewriteCond %{HTTP_REFERER} !/index\.php\?r=user/profile

RewriteCond %{REQUEST_URI} !^/index\.php$ [OR]

RewriteCond %{QUERY_STRING} !^r=user/profile$ [NC]

RewriteRule ^(.*)$ [url removed, login to view]$1 [R,L]

The mixed content error is as follows.

Mixed Content: The page at '[url removed, login to view] r=user/profile' was loaded over HTTPS, but requested an insecure image '[url removed, login to view]'. This content should also be served over HTTPS.

As it can be seen, the assets under YII framework is the only folder causing problem. I have to find a way to serve the contents via https to eliminate this problem.

Is there a way to request the files used from assets in a https fashion so I don't get a mixed content error?

Please note that I am not able to give access to the server. I will be able to work via chat.

Compétences : Sécurité Web, Yii

Voir plus : www yii, php show mixed content ssl, fix security issue joomla, ssl security warning safari, safari ssl security warning, web script security issue, ssl security certificate, flash content ssl, flash game save score security issue, showing flash content ssl, plesk security issue

Concernant l'employeur :
( 0 commentaires ) Glen Allen, United States

N° du projet : #8499053

6 freelance font une offre moyenne de $169 pour ce travail

tcjn

Nie złożono jeszcze oferty.

66 $ USD en 3 jours
(3 Commentaires)
2.1
greeboninfotech

hello sir, i will ready to work with this. i have 5 years experience in php, mysql, html, css, jquery,codeigniter, wordress, drupal, joomla, opencart, Yii,prestshop, ajax,fabricjs . some of my portfolio http Plus

356 $ USD en 3 jours
(1 Commentaire)
2.0
miracitech37

Hi there, We are a team of highly experienced designers, coders and SEO experts. Our skills include Adobe photoshop & Capitative,Storeyline, Os commerce, Scorm, Java, Moodle, Blockly Code Editor Java script, Drupal Plus

206 $ USD en 3 jours
(0 Commentaires)
0.0
Ncikovl

I are an experienced Web programmer . I Do Wordpress,Magento Drupal,Joomla,E Commerce, PrestaShop,Responsive Designs, Opencart PHP,Jquery, Mysql Jquery, HTML5, Javascript, have been working since 2009 specifically with Plus

155 $ USD en 3 jours
(0 Commentaires)
0.0
OleksandrY

Hi! I will be glad to fulfill your project. My proposal is to use Yii2 framework with Mysql DB. Some of my works 1) participate in the development of the admin's [url removed, login to view] Browser for iOS (iPad) Plus

77 $ USD en 3 jours
(0 Commentaires)
0.0
firelis88

A proposal has not yet been provided

155 $ USD en 3 jours
(0 Commentaires)
0.0