@HuffinPuffin wrote:
Hi everyone,
I am trying to use Matomo Tracker Proxy as well as Matomo’s Opt Out iframe. All works well until I add the .htaccess instructions mentioned here, as below
<Files "*"> AuthType Basic AuthName "Piwik" # to be explicit, state the provider AuthBasicProvider file AuthUserFile "/PATH/TO/.htpasswd" Require valid-user </Files> # Allow external access to piwik.php and piwik.js and robots.txt <FilesMatch "(^piwik\.(php|js)|robots\.txt)"> Require all granted </FilesMatch> # Allow Opt-Out <Files "index.php"> <If "(%{QUERY_STRING} == 'module=CoreAdminHome&action=optOut')"> Require all granted </If> </Files>
Once that is in place, I get an error:
HTTP401: DENIED - The requested resource requires user authentication. GET - http://example.com/matomo-proxy.php?module=CoreAdminHome&action=optOut&language=en&backgroundColor=&fontColor=&fontSize=&fontFamily=
Would anyone know how to modify the .htaccess to fix this? Apologies, I sense that this is an easy fix, but I don’t understand enough to do it myself so would appreciate any help.
Thanks very much.
Posts: 2
Participants: 2