XF 2.0 HTTPS disappears when avatar load

VG_AzR

Active member
Hello, I have a concern that I would like to solve urgently it happens that when certain member connects the HTTP switches from secure to unsecured.

https://prnt.sc/jqnvsb

So I look in my browser's console if there was not an error and voice the error : http://prntscr.com/jqnioq

The avatar of the member loads in HTTP and not in HTTPS which produces the error. How to correct this please
 
Are you using LiteSpeed or OpenLiteSpeed. I know that with OpenLiteSpeed there was some weird stuff with the .htaccess you had to do - in fact, it didn't actually use it in the normal location and you had to put it in the control panel for OLS. There was also some unexpected behaviors with some of the parameters used (this was a while ago that I used it and one reason I went back to NGINX).
LiteSpeed should be able to read the .htaccess normally... and your rewrites need to be at the TOP of the .htacccess that map WWW to non-WWW and HTTP to HTTPS.
 
Are you using LiteSpeed or OpenLiteSpeed. I know that with OpenLiteSpeed there was some weird stuff with the .htaccess you had to do - in fact, it didn't actually use it in the normal location and you had to put it in the control panel for OLS. There was also some unexpected behaviors with some of the parameters used (this was a while ago that I used it and one reason I went back to NGINX).
LiteSpeed should be able to read the .htaccess normally... and your rewrites need to be at the TOP of the .htacccess that map WWW to non-WWW and HTTP to HTTPS.
Code:
Options +FollowSymLinks

RewriteEngine On

RewriteBase /

<IfModule mod_headers.c>
Header always set X-XSS-Protection "1; mode=block"
</IfModule>

#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default

<IfModule mod_rewrite.c>

       RewriteCond %{HTTP_HOST} www.yourstudio.fr$
       RewriteRule ^(.*)$ https://yourstudio.fr$1 [R=301,L]

    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
    #RewriteBase /xenforo

    #    This line may be needed to enable WebDAV editing with PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>

# LiteSpeed XenForo cache
<IfModule litespeed>
    CacheLookup public on
    RewriteEngine On
     # cache
     RewriteCond %{HTTP_COOKIE} !xf_user [NC]
     RewriteRule .* - [E=Cache-Control:max-age=360]
     # no cache
     RewriteCond %{HTTP_COOKIE} xf_user [NC]
     RewriteRule .* - [E=Cache-Control:vary=loggedin]
     RewriteCond %{HTTP_COOKIE} xf_user [NC]
     RewriteRule .* - [E=Cache-Control:no-cache]
</IfModule>
This is my HTACCESS, do you see a problem ?
 
Top Bottom