Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2016
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Redirect from HTTP://EXAMPLE.COM to HTTPS://WWW.EXAMPLE.COM

    I have SSL certificate and I would like to send my users to www subdomain.
    I want everybody who visits:
    Example Domain
    Example Domain
    to be redirected to:
    https://www.example.com

    Currently I have this:
    Code:
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    I have near 0 idea what it does, I just want the solution, I'm not really seeking towards deeper understanding of it.
    My browser says that website can't be loaded because it redirects too much. So here I am helping me redirect stuff.

  2. #2
    New to the CF scene
    Join Date
    Oct 2016
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It seems that your autocomplete changed links into valid websites -_-

    I meant:

    I want everybody who visits:
    Code:
    http://example.com
    http://www.example.com
    to be redirected to:
    Code:
    https://www.example.com


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •