composer update my Drupal installation gets updated, but it also changes the content of the .htaccess file each time.
How can I correctly patch it?
scripts section of your composer.json file, use the following:
"post-drupal-scaffold-cmd": [ "patch -p0 < patches/htaccess.patch" ]
(this requires "drupal-composer/drupal-scaffold" in your