• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

OrganicWeb

Mailchimp Training & Consulting

  • Home
  • Services
    • Mailchimp Training
    • Mailchimp Consulting
  • Free Tools
    • Mailchimp Tutorials on YouTube
    • Subject Line Generator
    • Marketing Ideas Generator
    • Map Maker for Email
    • WhatsApp Click to Chat Generator
    • Avoid Email Going to Spam
    • Email Link Generator
    • Is Mailchimp Down?
    • Marketing Facts and Stats
  • Content
    • Blog
    • Videos
  • Contact & About
    • Contact
    • About

Solve WordPress login problem when using CloudFlare

On several WordPress websites, when using CloudFlare Flexible SSL, I’ve been unable to login to view my WordPress dashboard. Some of the websites have had one or all of the following plugins installed (in addition to other plugins):

  • CloudFlare
  • CloudFlare Flexible SSL
  • WordPress HTTPS (SSL)

When I try to login to the dashboard using my username and password and click the login button, it appears that nothing happens and I need to enter my login details again.

In order to resolve this issue, a specific Page Rule needs to be added to CloudFlare. The pattern to add is as follows (change example.com to your domain):

example.com/wp-login*

and set the rule with SSL set to Off.

You’ll now be able to login to your WordPress Dashboard

Found this useful? Please share:

Related

  • Easy setup CloudFlare SSL with WordPress
  • Fix WordPress HTTPs Admin Permissions
  • Rock-solid free security for WordPress

Filed Under: WordPress

Watch Gary in action

Gary frequently adds Mailchimp instructional videos to his YouTube channel. Subscribe to keep updated.

→  Subscribe   ←

How to add an editable attachment to a Mailchimp campaign.

How to add, and send, coupon codes in Mailchimp.

Reader Interactions

Comments

  1. Jonathan says

    September 13, 2016 at 6:35 pm

    Great article! I used the tip and now login is working. However, I am having issues with adding products into shopping cart… When I’m logged out and visit the product page, and add a product to cart, nothing happens. What do I need to change? I was “this close” from dropping CloudFlare altogether, but I found this site!

    Reply
  2. johnny says

    December 22, 2016 at 2:21 pm

    You really ought to mention that this should only be a temporary workaround until you figure out why login isn’t working.

    For many people, protecting /wp-admin/ is the prevailing reason to implement SSL/TLS in the first place. Disabling it defeats the entire purpose!

    Reply
    • Gary says

      December 23, 2016 at 9:11 am

      Since I wrote this article over a year and a half ago this problem seems to have been largely addressed by CloudFlare. Also, the only plugin that is now needed to have CloudFlare deliver WordPress websites via HTTPs is the official CloudFlare plugin.
      You are correct that disabling SSL should be a temporary solution but I haven’t heard of any WordPress sites being hacked due to HTTPs not being enabled for /wp-admin

      Reply
      • Pavan Namdev says

        September 3, 2017 at 1:10 pm

        I have done this, but still I am not able to open website neither login dashboard

        Reply
  3. Vishal says

    January 20, 2017 at 12:56 am

    Can you help me with this i am not able to log in also not able to do lost password please help me and also help me to add free ssl to subdomains

    Reply
  4. Kerry Whitfield says

    April 29, 2017 at 9:33 am

    Didn’t work for me. I can now get to the WP login screen and type my username and password in, but when I click the Login button I’m taken to a 520 error page. Web server is returning an unknown error.

    Reply
  5. Tawichakorn Sirisapwong says

    July 19, 2017 at 1:55 am

    Hi, try to set Page Rule in Cloudflare and set patern url http://*domain/wp-admin/* then Login again

    Reply
  6. Richa says

    September 28, 2017 at 10:55 pm

    Hello,
    I used you suggestion above, but i am facing a strange behaviour, maybe cause of the them or other plugins. But please suggest

    On admin panel I am unable to login if i have
    domainname.com/wp-admin/* in cloudflare page rule set to ‘ON’

    Once i am logged in, I cant access admin panel if the above rule is ‘OFF’

    Hence to work I had to first deactivate page rule, and after login have to reactivate it.
    And I am never able to logout
    it gives
    https://domainname/wp-login.php?action=logout&_wpnonce=7885b2190f&redirect_to=http%3A%2F%2Fdomainname

    a 404 page error.

    Can you please guide me with it.

    Thanks in advance.

    Reply
  7. Greg says

    October 31, 2017 at 7:40 pm

    Works like charm. Thanks!

    Reply
  8. Haram says

    November 16, 2017 at 9:10 am

    It’s old information. But if still happen with you, must Force the HTTPS.

    1. First install Cloudflare plugin, I will use https://wordpress.org/plugins/cf-littlebizzy/

    2. Next enable Flexible SSL

    3. Last is force HTTPS in WordPress: https://wordpress.org/plugins/force-https-littlebizzy

    4. Do not choose “Full ssl”

    Done —

    Reply
  9. Kanyi says

    April 30, 2018 at 7:21 pm

    Hi,

    The above steps did not work for me.

    I can’t login after enabling cloudflare. Any other steps to take?

    Reply
  10. Marc says

    April 20, 2019 at 5:39 am

    Links are dead now Littlebizzy plugins in Github mate

    https://github.com/littlebizzy/cloudflare
    https://github.com/littlebizzy/force-https

    Reply

Leave a Reply Cancel reply

You are here: Home / WordPress / Solve WordPress login problem when using CloudFlare

Primary Sidebar

Mailchimp write about my work

Read on Mailchimp.com

Learn from a Mailchimp Pro Partner

Signup to receive info about Gary's Mailchimp beginner and advanced classes.

Sign up

Gary on Australian National Radio

Changes are coming to the Australian Spam Act

Read Gary's article in SmartCompany

Meet Gary, Mailchimp Expert

Gary is a Mailchimp Expert and Partner. He delivers Mailchimp training and consulting services in Australia, New Zealand and Singapore. Gary presents at Mailchimp events and hosts the first, and only, Australian Mailchimp sponsored event. He is M.B.A. qualified from Henley Business School, U.K.

Contact Gary for your Mailchimp needs

Footer

Customer Rating

Mailchimp Pro Partners

Contact

Contact Gary for all your Mailchimp training, consulting and integration needs.

Contact Gary.

Copyright © 2022 · Sitemap · ABN: 40800872179 · Privacy Policy · Terms of Service