Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
After running 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?
In the scripts section of your composer.json file, use the following:
"patch -p0 < patches/htaccess.patch"
(this requires "drupal-composer/drupal-scaffold" in your require section)
Required, but never shown
1 month ago