I had that problem as well. The solution is to put the appropriate quotes in those lines.
Try changing your lines to:
RewriteRule “^.well-known/carddav” “/owncloud/remote.php/carddav/” [L,R=301]
RewriteRule “^.well-known/caldav” “/owncloud/remote.php/caldav/” [L,R=301]