SSL on site, but NOT one page

Hello again fellow Dolphineers. I am in need of a little more assistance, please.

 

My current situation is this:

I am creating a Books module. In this books module, a user types in the name of a book or keyword or author. It connects to Google Books and displays a certain number of results ( I have it at 6 right now). If the book is in the list, then I have a import button which retrieves the details about the book from Google Books and enters into my site database. All that works fine and dandy. Here is where my issue is.

 

Due to what we are trying to accomplish and who our target market is, we have SSL'ed the entire site. So far everything works like it is supposed to. Now, with this new module I am working on, Google Books API allows for a preview of a book, so I want to add this preview to the Book View page. BUT - The preview coding does not allow for SSL.

 

Is there a way to SSL a whole site - EXCEPT for one page. In my header.inc.php file, I have my domain as https://mydomain.com, and I also have this in my .htaccess file which forces everything to go to https:

 

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

caredesign.net
Quote · 19 Feb 2014

Try this:

RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} !^SomePage.php
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 19 Feb 2014

@HL - will this concept work for a whole module structure - such as m/books/, or would I have to do each page individually? and thanks for the response.

 

Edit - still throwing me to the https.

caredesign.net
Quote · 19 Feb 2014

@professor

Did you manage to sort this out after? I need to do the same thing. Chat and forum will not work under https but when http they work fine I only need https for logins really. Soon as I seen this I wondering if you sorted it and have the htaccess codes to avoid certain pages with https.

Quote · 21 Aug 2015

Chat and forums will work under https. not sure why yours is not. Make sure that your inc/header.inc.php has https://yourdomain.com and not http://yourdomain.com. And in your .htaccess file, make sure you have this:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]

 

and make sure to clear all caches - including browser cache

caredesign.net
Quote · 23 Aug 2015
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.