adding proper htaccess commands for Apache 2.4
implementing solution using <ifModule mod_authz_core>
Merge pull request #5759 from owncloud/fixing-5757-master

adding proper htaccess commands for Apache 2.4