Due to uniformity I want to redirect visitors from https://www.cloud.example.com to https://cloud.example.com (without www
).
My question now is: Can I simply insert an additional command like…
# Redirect www to non-www for cloud-subdomain:
RewriteCond %{HTTP_HOST} ^www\.cloud\.example\.com$ [NC]
RewriteRule ^ https://cloud.example.com%{REQUEST_URI} [R=301,L,NE]
… into the .htaccess
-file from the Nextcloud-directory? Furthermore, where has this command to be placed in the file? Or doesn’t it matter?
Thanks a lot for your help!