Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

Exclude piwik.js and piwik.php from ssl redirect

$
0
0

@riznob wrote:

I am using apache2 on ubuntu server. I have configured all traffic to redirect to ssl. I'm using letsencrypt.org for ssl certs and it help setup the redirects. I need to exclude two file from that ssl redirect.
/piwik.js
/piwik.php - this one will likely have query string args as well

Here are the contents of my conf-available/ssl-only.conf file...

RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule .* https://%{HTTP_HOST}/%{REQUEST_URI} [R=301,L,QSA]

What do I need to change here to exclude these two file from being redirected to ssl?
Thanks,
Rob A

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles