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
<IfModule !mod_version.c> part which I found in the file you linked. I think this is the most consistent code I can make of it.
I've tested this version of the .htaccess and it works at my client's Matomo installation on our Apache 2.4 servers.
@jorisdrenth does the mod_version one alone not work for you?
Hi @jorisdrenth, you're right, my glance at the file should have been more thorough. Thanks again for the contribution!