Mixed content Redirect rules

Disabling ssl for one page only

The problem: services that don’t support SSL

I think the best way to go is to get your entire site on SSL. But sometimes there are services that are not really up to date, they don’t provide an SSL certificate on their service.

How to solve this?

In most cases, I would try contacting them to try and get them to enter the current century, and start providing a service that supports SSL. If that is not possible, you can try disabling SSL for one page.

Solution with a plugin

To do this, I’ve developed a plugin that handles this for you. You’ll have to deactivate the free plugin, than install Really Simple SSL per page.  It will give you the option to enable SSL per page explicitly, or, when you use the “exclude pages” option, to set all pages to SSL, except the pages you have selected.

Manual solution

You can also do it manually:

Step 1:

  • In the Really Simple SSL settings, disable the javascript and WordPress redirect to SSL
  • Enable the checkbox “stop editing the .htaccess”

Step 2:

Open your ftp client, like filezilla, and go to the root of your website. Look for the .htaccess file. You may have to enable the “show hidden files” option.

Open this file (make a backup), and look for the

# BEGIN rlrssslReallySimpleSSL  comment

Some rows below this comment, you will see something like:
RewriteCond %{HTTPS} !=on [NC]

Right after this entry, insert the following:
RewriteCond %{REQUEST_URI} !/your-page

The end result should be something like:

# BEGIN rlrssslReallySimpleSSL rsssl_version[2.3.8] <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTPS} !=on [NC] #this line may be different on other servers RewriteCond %{REQUEST_URI} !/your-page #add your excluded page here RewriteCond %{HTTP_HOST} ^domain.com [OR] RewriteCond %{HTTP_HOST} ^www.domain.com RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] </IfModule> # END rlrssslReallySimpleSSL

If it’s still redirecting to https for that page, you might need to setup Really Simple SSL using safe mode

This means the redirect will be used, but not on this page.

Related Articles

  • Compatibility fix for Social Warfare share counts recovery

    If you are using the Social Warfare share counts recovery plugin to recover the social shares and likes for Facebook,  Twitter etc, you might run into the problem that there is...
  • My browser still gives mixed content warnings

    If you still get mixed content warnings, you have to track down the cause. If the mixed content fixer is working, the Really Simple SSL fixes all images, javascript, style...
  • Images not found with Photon from Jetpack

    Some websites using JetPack have Photon activated. Photon is an image acceleration and editing service, where the images are served from the WordPress cloud. In some cases, there are issues...
  • Parts of my site not loading

    Did you install Really Simple SSL on your site, and now some images, stylesheets, or external servcies are not loading? When a site is requested over the SSL protocol, the...


  • KenZhang

    i disabling ssl for one page only can i change 301 redirect to 404 response for one page?

    • Rogier Lankhorst


      Do you mean you want to redirect to a not found 404 page?

      • KenZhang

        YES If my website is xxx.com/123/
        i want redirect 404 for only this folder eg: xxx.com/123/11/

        • Rogier Lankhorst

          You can simply use this:
          RedirectMatch 404 ^/abc*
          Which redirects page abc to a 404 page

  • Mirko Pal

    Hi,for my website not working or need to use other code.I have a games website and I want to remove https on the play game page.I can not use “your page” in that part, because are thousand of pages.I try it with play_page.php, is call like that in themplate folder.Can you help me .Thanks in advance.

    • Rogier Lankhorst

      If those pages all follow some sort of generic url structure, like domain.com/games/game1 you could use something like this:
      RewriteCond %{REQUEST_URI} !^/(games/.*)$

      • Luciano

        Hello I have a similar problem, I have to disable all of template pages “gallery” for example look at this link https: https: //www.lodeate.it/gallery/popoli-tutti-acclamate-signore-testo-video/ can you help? Thank you

        • Rogier Lankhorst

          Hi Luciano,
          What is the problem with that page? It seems to load fine over https.

  • Paolo

    Hi Rogier, first of all thank you for your plugin and support!

    I followed your steps but it seems doesn’t work for me. I need to disable SSL on this page: s t u d i o p i n c e l l a [dot] it / f i n a n z a – a g e v o l a t a

    What am I doing wrong?

    Thank you so much!

  • Miguel Muñoz

    How could I do to place an external link that leads to an http site? It’s possible? When I put a link to an external site http always changes to https. Thank you.

Leave a Comment