Create a file without an extension containing "RewriteEngine on" to redirect requests. Upload this file to the "httpdocs" directory. The code includes a rewrite condition and rule to redirect requests to a specific domain with a 301 redirect. A correct example shows the redirection to "https://www.musterdomain.ch".
To do this, create a .htaccess (file without an extension) with the following content and upload it to "httpdocs":
Syntax:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/.well-known/
RewriteRule (.*) https://www.domain.ch [R=301,L]
Correct example:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/.well-known/
RewriteRule (.*) https://www.musterdomain.ch [R=301,L]