Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter noyed

    (@noyed)

    Hey, I uninstalled SSL redirect and added this to .htaccess:

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTPS} !=on [NC]
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%/$1 [R=301,L]
    </IfModule>
    
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{SERVER_PORT} !443
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%/$1 [R=301,L]
    </IfModule>
    
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%/$1 [R=301,L]
    </IfModule>
    
    RewriteEngine on
    RewriteCond %{HTTPS} !=on [NC]
    RewriteRule ^(.*)$ https://gamingmansion.pl/$1 [R=301,L]

    But I don’t know if that’s the proper way of doing it. I uninstalled SSL redirect because it slowed down the page tremendously, most likely of multiple redirects having conflict.

Viewing 1 replies (of 1 total)