Thanks everyone for your replies.
Would it be possible to use a rewrite in Apache to work around this for the control panel specifically? There's nothing useful you can do on the control panel if you're not logged in, so anyone who isn't logged in on that page surely wants to go to the microfocus login. Also, a solution in the virtualhost config wouldn't prevent you from installing updates to vBulletin itself.
A while back I was experimenting with my Drupal site and mod_rewrite, and I managed to rewrite users to HTTP unless they were requesting the login page, or they already had a secure session cookie (I was using a self-signed certificate at the time and didn't want the HTTPS stuff indexed, but wanted to use the site on HTTPS myself - that's another story though).
Anyway, this was the config:
Code:
# rewrite HTTPS to HTTP unless request is to login page (/user/login) or secure session cookie is present
# works in FF and Rekonq on Linux, AOSP browser but not FF for Android.
RewriteCond %{HTTP_COOKIE} !^.*SSESS612cb529d2dfaadfff38b8731a3a4c8a.*$ [NC]
RewriteCond %{THE_REQUEST} !user [NC]
RewriteRule ^/(.*) http://www.example.com/$1 [R=302,L]
So in theory I can't see a reason why we couldn't rewrite based on whether a secure cookie is present and the request is to /usercp.php. Then again, I'm sure this forum is a lot more complicated than my site!
(I also noticed that I didn't finish the thread title for some reason, could someone edit it to "login should always redirect to the microfocus login" please? Thanks.)
Bookmarks