In composer.json add to the scripts section. See below: "scripts": { "pre-install-cmd": [], ... "post-drupal-scaffold-cmd": [ "patch -p1 < patches/my-htaccess.patch" ] }, Tags Composer Configuration Drupal Drupal 8 Drupal 9 Comments Your name Email Subject Comment About text formats Restricted HTML Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> Lines and paragraphs break automatically. Web page addresses and email addresses turn into links automatically. Leave this field blank
Comments