redirect https

//PUT THIS IN .htaccess

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^gymstatistics\.altervista\.org [NC,OR]
RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'
RewriteRule ^ https://gymstatistics.altervista.org%{REQUEST_URI} [NE,R=301,L]

4
7
Haffael 95 points

                                    if ($_SERVER['HTTPS'] != "on") 
{
    $url = "https://". $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
    header("Location: $url");
    exit;
}

4 (7 Votes)
0
4
5
Imzogelmo 85 points

                                    RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

4 (5 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
https redirect page https redirect meaning konsoleh redirect http to https Redirecting HTTP to HTTPS redirect http www to https why http to https redirect in browser site automatic redirect from http to https http redirection to https redirect http to https htacces link redirect https HTTP REDIRECTING TO HTTPS ON LOCALHOST redirect non https to https redirect http and https to another domain redirect url gives https http to https redirect command redirect https to www should you include https in redirects redirect html site to https redirect http request to https redirecting url from http to https redirect https to http .thacces directus redirect https redirect one html page https to http auto redirect http to https iias how to redirect to https from http how to redirect https link to http redirect url to http to https redirect http to https and to non www how redirect http to https httpd redirect http to https redirect http to https www to non www how to redirect to https to http stop redirect http to https amen https redirection Redirect Browser to https http https redirect force redirect https redirect http to https a html redirect http to https http gets redirected to https how to get http to redirect to https https to https redirect redirect all page http to https code to redirect to https check for https redirect redirection vers https how to setup redirect from http to https browser redirect http to https redirection adding https https redirection code static site redirect http to https can you redirect https to http redirecting from https to https website how to redirect to https https redirect where how make redirect to https redirect all https to http how to automatically redirect http to https redirect without https how to redirect http to https domain rediricting http to https http to https redirect issue redirects point to http and then https redirect http link to https redirect site to https wpengine https redirect html http redirect to https redirect to https html how to make http to https redirect setup redirects to https internal redirect from http to https force redirect to https register redirect http to https does http redirect to https create redirect to https site redirection from any https httacess redirect http to https redirect https page redirect https [page browser redirect with https https to http redirect http to https redirect checker how to redirect from https to http redirext to https http redirect https redirect http to https inmotion https redirect to another https redirection ovh https to https http to https redirect alb should i redirect all my pages from http to https all my pages redirect from http to https redirect html website to https redirect from https to http rediret to https can an https redirect http to https redirect atcacces make http redirect to https redirect html https how to redirect www to https how to redirect http requests to https redirect http for https redirect html page to https http redirect to https html one.com https redirect always redirect to https apache redirect http to https and non www to www why is my site redirecting to http instead of https redirect http to https with subroutes do i need to redirect both http and https how to make http redirect to https redirect to http to https https redirect how to redreict from http to https How to redirect https to https should you redirect to http or https set redirect from http to https redirect https to another https https redirects to https how to set redirect from http to https how to redirect links to https apache redirect from http to https redirect httt to https htacess redirect http to https redirect https for http aaws how to redirect all http to https why http redirect to https redirect domain from http to https automatically redirect http to https redirect http to https then www redirect http to https means redirect http to https conf does http automatically redirect to https redirect from https to http work? https http redirection time redirect http to https ssl redirect from http page to https redirect all www http to https force redirect http to https redirect http to https in html website how to redirect https to http https redirecting to http www redirect to https redirect url from http to https redirect all http to https html redirect to https how redirect the my website to https redirect http to https code redirecht http to https redirect http to https ovh redirect to http instead of https check redirection http https redirect https to http redirect https to https redirect my website to https setup http to https redirect https to http redirect service http redirect how to redirect http to https from cpanle redirect website to https how to force all traffic to https example redirect http post request to https auto http to https https redirect deve https redirection domain redirect http to https how to automatically redirect from http to https redirect www to https ovh redirect http to https http_redirect https redirect http vers https how can i redirect http to https what is redirect url redirect http to https nodejs https redirect to https jelastic redirect http to https force https redirect how redirect http to https redirect from http to https how redirect and attact header http to https not redirecting requests redirect https tomcat redirect http to https stop redirect http to https for one url redirect using headers windows iis http to https redirect how to use redirect to htnl page in return redirect withouth using header https to http redirect htaccess how to redirect http to https in html website why is http redirect to https add redirect from http to https htaccess not redirecting to https ihs redirect to http and then to https force https redirect go cpanel forse https 443 to 3000 how to redirect http to https in certbort apache rewrite add https make site redirect to https how to redirect website to https how to forward a site to https httpd redirect url redirect http to https iis keep port data when rediredct to https apache vestacp redirect http to https how to set up https redirect how to redirect http how redirect url http to https url rewrite http to https redirect http to https html redirect to https how to auto redirect http to https redirect traffic from http to https apache automatic redirect to https redirect http tp https https redirect for redirect https to another https without ssl iis redirect all to https redirect https ssl redurect http redirect to https apache redirect to https only specific url apache redirect all to https http to https redirect httpd https redirect how to redirect from http to https redirect all with to https redirect from http to https redirect to ssl http to https redirect apache apache force https redirect port to https always redirect to https ubuntu http redirect to https apache apache redirect all http to https apache best way to redirect http to https how to redirect http to https apache redirect to httpw redirectionthe target URL http into https apache redirect http to https how to redirect every page from http to https apache redirect http to https how to redirect http to https
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source