In Apache 2.4+, the syntax for access control has changed. This causes the cron script to return a 500 error when running on Apache 2.4+. This PR checks which version of Apache is used and uses the right syntax.
Thanks for your comment @diosmosis. I've made the requested changes, also adding the
I've tested this version of the .htaccess and it works at my client's Matomo installation on our Apache 2.4 servers.