Alias /nextcloud "@DATAPATH@/"
Options +FollowSymLinks
AllowOverride All
Dav off
Header set Referrer-Policy no-referrer
Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
SetEnv HOME @DATAPATH@
SetEnv HTTP_HOME @DATAPATH@
# just in case if .htaccess gets disabled
Require all denied
Redirect 301 /.well-known/carddav /nextcloud/remote.php/dav
Redirect 301 /.well-known/caldav /nextcloud/remote.php/dav
Redirect 301 /ocm-provider/ /nextcloud/ocm-provider/
Redirect 301 /ocs-provider/ /nextcloud/ocs-provider/