Geolocation and HTTPS

Hello.

I’m implementing Piwik to track 4 sites. Piwik is working under HTTPS, as the four sites. As it’s a shared hosting plan, I’m using htaccess to ensure that all pages are redirected to the HTTPS side.

My issue is about Geolocation: Piwik seems to capture the IP address of the server providing the SSL certificate, not the IP address of the browser accessing the site. Anything I can do on the piwik side to change that?

Merci

This is because your server is doing the redirect. I would look at a different way of doing the redirect.

My searching took me to things like X-Forwarded-X headers and HTTP Strict Transport Security.

Hi Valdhor,

Thanks for that - reading these two pages, it seems that on my particular instal, I won’t be able to alter that…

It’s weird though, I thought the redirection was only conditional… I’m using this:
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://travel.corsidecape.com/$1 [R,L]
which I thought was only active when people try to reach the http version of the site, not the https version of the site but it’s happening even when I’m typing the full address with https…

In that case I would ask the hosting provider. Maybe they have some insights.