Forcing https on owncloud

The redirect directly in your apache config is not a bad idea. however, it must be in the right place (vhost for http host). There is a simple example in the apache-docs:
https://httpd.apache.org/docs/2.4/rewrite/avoid.html#redirect