This is my third installation of Piwik, but the first time that I’m having trouble. On my new WordPress website (based on a personal theme) I’m getting the following error
[Error] Failed to load resource: the server responded with a status of 403 (HTTP/2.0 403) (piwik.php, line 0)
followed by an enormously long URL.
Here’s the URL. Please note that I’ve exchanged my domain with example.com:
This error is returned on the home page (Startseite in german). On the other pages, this is replaced by the name of that page.
I did contact my hoster because I read something about mod_security, but the hoster says that everything is ok there and the site is correctly whitelisted. They have no idea why this happens and I do neither.
Hopefully anyone of you can uncover this mystery. Thanks in advance for any help!
PS: Running on Piwik 3.0.1, MySQL 5.6.35 and PHP 5.6.30
It was a problem with the .htaccess file. Wordpress is installed in the root directory and there is a /stats subdirectory, in which Piwik is installed. In Wordpress I have some plugins for security which do start the rewrite engine, but don’t stop it. So to solve this error, I made another .htaccess file, which I put inside the /stats directory. in that .htaccess-file I’m only stopping the rewrite engine. Now it all works perfectly again.