@Chris D , since it seems you are more experienced regarding xenforo on https - may I ask for your help once again ? Unfortunal this goes over my head and the forums are only showing the well known htaccess redirects, which won´t fit here.
Situation:
we switched to https, Google is allowed to index those sites. The remaining problem now is, that we need unregistered members to be redirected the other way, from https to http. I know, some may ask
'Why the heck you wanna do that?'. That´s needed because our premium ad-partner can´t deliever
https only and else we get a) mixed content and security warnings in the users browsers and b) we only show this advertiser now on http - and we need the money.
Of course, I could redirect the whole traffic via htaccess
Code:
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
to force ssl, but that would redirect all and not just guests. For that I need xf to sort them out via
Code:
<xen:if is="{$requestPaths.protocol} == 'https' AND !{$visitor.user_id}">
replace protocol portion 'https' with 'http' and redirect
</xen:if>
Honestly I have no idea how I could put the redirect rule into proper xf syntax - or wether this function could be possible in the first place.
Any help (even good ideas) would be really appreciated.
Thanks,
Sperber.