I am having a problem in that I want to redirect some of my pages to their https equivalent based on what domain they are on. So I want all pages involving shop.cart to be redirected say from http://ja.mysite.com/blahblah?shop.cart to https://ja.mysite.com/blahblah?shop.cart but when I try and do this via htaccess or PHP I get the result that the domain is always www. even when it is ja. or fr. etc. I guess this must be down to the CDN but there must be a way of recognising which domain I am currently in? Thank you for your time.

I'm not sure, but it should be possible to use %{HTTP:X-GT-Lang} in the RewriteRule, something like this

RewriteCond %{HTTP:X-GT-Lang} !^$ # if there is selected language andRewriteCond %{HTTPS} ^off$ # if the protocol is not httpsRewriteRule ^contact-us$ https://%{HTTP:X-GT-Lang}.domain.com/contact-us [R=301,L]

It should be also possible to do this:RewriteCond %{HTTP:X-GT-Lang} ^(.+)$ # if there is selected language andRewriteCond %{HTTPS} ^off$ # if the protocol is not httpsRewriteRule ^contact-us$ https://%1.domain.com/contact-us [R=301,L]

I'm not sure about your server specifics and cannot tell exactly how it should be, you will need to play with it little more, but you can do the redirect easily in PHP, you can check the selected language using $_SERVER['HTTP_X_GT_LANG'] variable and make the appropriate redirect using

Thanks Edvard, I've just send all the info I have for the certificate through to you via your contact form. Please can you install that in my popularseeds.com enterprise installation. Please email me at [email protected] if there is anything missing.