Force https

Discussion in 'HTML and CSS' started by smithy, May 23, 2020.

  1. smithy

    smithy

    Joined:
    May 2, 2020
    Messages:
    8
    Likes Received:
    0
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    try to add this in my htaccsess file but it doesn't work any ideas why folks

    This page isn’t working
    jhone-doe.online redirected you too many times.



    ERR_TOO_MANY_REDIRECTS this is what i get
     
    smithy, May 23, 2020
    #1
    1. Advertisements

  2. smithy

    smithy

    Joined:
    May 2, 2020
    Messages:
    8
    Likes Received:
    0
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^yourdomain\\.com [NC]
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.jhone-doe.online/$1 [R,L]

    iv'e added this instead but it doesn't actually force https
     
    smithy, May 23, 2020
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.