Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I keep uploading patches with local changes to .htaccess. Could we have a .htaccess.default and do a similar thing to it as settings.php during install?
Comments
Comment #1
Akaoni CreditAttribution: Akaoni commentedIf making changes to Drupal .htaccess files, please be aware that some environments don't use them and others break entirely:
#360057: Automatic creation of .htaccess files can cause errors
Comment #2
laura s CreditAttribution: laura s commentedThe discussion in #1170538: Rename core .gitignore file to example.gitignore and add explanatory comments has prompted me to dig around and find this issue. Several comments, including @brianV in #108, have convinced me that it would be best to embrace this proposal.
Both .htaccess and .gitignore should be renamed example.foo and be done with it. Just like settings.php was rescued from core overwrites. Site builders, even n00b developers, can copy and revise to their hearts' content (and maybe the install.php process could step in and generate default files on appropriate environments, if that seems like a desirable tangent issue to pursue). This way, if new thinking or best practices emerge during the release's lifecycle, those example files can be changed and people can learn from them without having their own work overwritten every time.
Comment #3
lpalgarvio CreditAttribution: lpalgarvio commentedand same for web.config i guess
Comment #4
lpalgarvio CreditAttribution: lpalgarvio commented