A
you add it in “/etc/httpd/conf.d/ssl.conf”, make sure its inbetween your virtualhost lines -
Redirect 301 /.well-known/carddav /nextcloud/remote.php/dav
Redirect 301 /.well-known/caldav /nextcloud/remote.php/dav
https://help.nextcloud.com/t/caldav-and-carddav-error-resolving/39435/5