Web Hosting Forum Login
Not a member yet? Sign up

Forcing SSL with .htaccess, cPanel & CloudFlare

  • HOME
  • FORUMS
  • WEB DESIGN
  • WEB HOSTING OFFERS
  • ADVERTISING
  • FIND A HOST
  • WEB HOSTING
  • QUICK MENU
  • REGISTER HERE - Join us for FREE
Results 1 to 8 of 8

Threaded View

  1. #1
    Join Date
    Nov 2016
    Location
    Amsterdam, The Netherlands
    Posts
    52
    Thanks
    1
    Thanked 14 Times in 8 Posts
    Thumbs Up/Down
    Received: 38/0
    Given: 7/0

    Red face Forcing SSL with .htaccess, cPanel & CloudFlare

    Using the following code in your .htaccess file automatically redirects visitors to the HTTPS version of your site:

    Code:
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    If you have an existing .htaccess file:

    - Do not duplicate RewriteEngine On.
    - Make sure the lines beginning RewriteCond and RewriteRule immediately follow the already-existing RewriteEngine On.


    Forcing SSL via cPanel follow this steps:

    - access the redirects section
    - set permanent (301) redirect
    - choose the domain name
    - enter the site's url using the SSL certificate
    - make sure wild card redirect is selected
    - select redirect with or without www


    Forcing SSL via CloudFlare follow this steps:

    - Login into your CloudFlare account, choose the domain which you wish to enforce the SSL.
    - From there select the Page Rules section and select Create Page Rules.
    - Add your URL and select Add a Setting.
    - Under Add a Setting select SSL and for SSL Settings choose Full.
    HostBastic.com - Fast Web Hosting & VPS
    cPanel | LiteSpeed | Cloud Linux | 100% SSD | FREE SSL | OpenVZ | DDoS Protected | 99.99% Uptime

  2. The Following 6 Users Say Thank You to HostBastic For This Useful Post:
    Chris Worner (01-06-2017),GswHosting (01-06-2017),LJSHost (01-06-2017),Maxoq (01-06-2017),VirtuBox (01-11-2017),wittwerch (01-19-2017)

Newer Threads

  1. energizedit
    Gecko
    Replies: 11 | Views: 337
    Last post by Gecko, 01-12-2017, 06:33 AM
  2. energizedit
    HostXNow
    Replies: 3 | Views: 258
    Last post by HostXNow, 01-07-2017, 06:28 PM
  3. JoeTaxpayer
    intqc[dot]in
    Replies: 7 | Views: 266
    Last post by intqc[dot]in, 01-13-2017, 07:37 AM
  4. JoeTaxpayer
    Web hosting to run web tools?
    By JoeTaxpayer in forum Web Hosting
    sh-admin
    Replies: 1 | Views: 183
    Last post by sh-admin, 01-07-2017, 03:09 AM
  5. Mujkanovic
    What does drwxr-sr-x mean?
    By Mujkanovic in forum Web Hosting
    LJSHost
    Replies: 1 | Views: 245
    Last post by LJSHost, 01-07-2017, 02:54 AM

Older Threads

  1. EcommIndiaCloudIT
    EcommIndiaCloudIT
    Replies: 0 | Views: 83
    Last post by EcommIndiaCloudIT, 01-06-2017, 02:56 PM
  2. Chris Worner
    Chris Worner
    Replies: 6 | Views: 271
    Last post by Chris Worner, 01-06-2017, 02:59 PM
  3. Moebuntu
    RDO Servers
    Replies: 3 | Views: 450
    Last post by RDO Servers, 01-06-2017, 03:59 PM
  4. Dr. McKay
    RAID 1 vs RAID 10
    By Dr. McKay in forum Dedicated Server
    HostYourNet-DR
    Replies: 18 | Views: 695
    Last post by HostYourNet-DR, 01-20-2017, 10:28 AM
  5. Vishnu
    Vishnu
    Replies: 0 | Views: 110
    Last post by Vishnu, 01-06-2017, 08:11 AM

Latest Threads

  1. UH-Peter
    UH-Peter
    Replies: 0 | Views: 11
    Last post by UH-Peter, Yesterday, 09:28 PM
  2. Mihai B.
    LJSHost
    Replies: 1 | Views: 28
    Last post by LJSHost, Yesterday, 04:48 PM
  3. Moebuntu
    Moebuntu
    Replies: 4 | Views: 115
    Last post by Moebuntu, Yesterday, 03:23 PM
  4. DefaultUser
    24x7CSM
    Replies: 4 | Views: 128
    Last post by 24x7CSM, Today, 02:04 AM
  5. hostingcoupons
    EcommIndiaCloudIT
    Replies: 3 | Views: 103
    Last post by EcommIndiaCloudIT, Yesterday, 11:46 PM

Similar Threads

  1. Gecko
    GswHosting
    Replies: 4 | Views: 214
    Last post by GswHosting, 08-29-2016, 12:01 PM
  2. Maxoq
    cochinweb
    Replies: 2 | Views: 169
    Last post by cochinweb, 08-20-2016, 02:44 PM
  3. karlkoeller
    nairprasad7
    Replies: 5 | Views: 595
    Last post by nairprasad7, 08-19-2016, 11:10 AM
  4. agelinajohly
    ElixantTechnology
    Replies: 6 | Views: 2149
    Last post by ElixantTechnology, 11-30-2014, 10:46 AM
  5. sanusense
    ironcladservers
    Replies: 2 | Views: 1539
    Last post by ironcladservers, 07-11-2014, 04:19 PM

Posting Permissions

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

Web Hosting Forum

ForumWeb.Hosting is a web hosting forum where you’ll find in-depth discussions and resources to help you find the best hosting providers for your websites or how to manage your hosting whether you are new or experienced. You’ll find it all here. With topics ranging from web hosting, internet marketing, search engine optimization, social networking, make money online, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.

Community

The world's smartest hosting providers come here to discuss & share what's trending in the web hosting world!
Copyright ©2017, ForumWeb.Hosting. All rights reserved. Web Hosting Forum for webmasters, web hosting providers, designers and web developers.

Welcome to Forum Web Hosting

The World's Number 1 Web Hosting Community, Reviews & Services

Log in!

Continue with Facebook
Continue With Email. By signing up you indicate that you have read and agree to the Terms of Service and Privacy Policy.

Sign in Manually

Need an account? Sign up now!