When you use Securepages and Boost it is a good idea to skip SSL for boost rewrites. If you do this it allows secure pages to redirect back to SSL when it counts. Otherwise you might run into issues with requesting SSL and have images or other files using NON ssl and creating warnings in IE.
Once I enabled this everything on my site worked great. I am using Civicrm and taking transactions.
# Skip boost IF not get request OR uri has wrong dir OR cookie is set
RewriteCond %{REQUEST_METHOD} !^GET$ [OR]
RewriteCond %{REQUEST_URI} (^/(admin|cache|misc|modules|sites|system|themes))|(/(comment/reply|user|user/(login|password|register))$) [OR]
RewriteCond %{HTTPS} on [OR] # <--- added this
RewriteCond %{HTTP_COOKIE} DRUPAL_UID
RewriteRule .* - [S=9]
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 516670-4-Boost_conditional_skip_ssl.patch | 3.82 KB | zhangtaihao |
| #1 | boost-516670.patch | 2.82 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 commentedInteresting point that makes since for the vast majority of sites out there.
Comment #2
mikeytown2 commentedcommitted
Comment #4
zhangtaihao commentedIn my server environment I actually have a few exceptions to this rule. I would put HTTPS into a separate condition, augmented by an environment variable. If the environment variable
BOOST_HTTPSis "on", Boost will not be bypassed for HTTPS requests. This is useful for shared platforms where one code base potentially hosts many sites. You would simply configure specific virtual hosts (or other more granular conditions) to use Boost for HTTPS with SetEnvIf/SetEnvIfNoCase for theBOOST_HTTPSvariable.I've attached a patch for what I use.
Comment #5
patrickroma commentedHi there,
I am still getting this problem with the frontpage... I just want my frontpage to be delivered in http:// not https://. Whenever I jump back from a SSL-Webform-Node to the front - the front-page is not changing back to http... all other pages work. I tried with different patches - without success so far. Any help would be really appreciated.
Comment #6
zhangtaihao commentedIt might be a combination of your Secure Pages configuration and Apache configuration (check to see if it's Apache forcibly redirecting or Secure Pages). Also, just in case you're behind a reverse proxy, check to see the reverse proxy actually correctly forwards the
HTTPSenvironment variable to your web server.