We have custom redirect links that use the RedirectMatch rules that redirect based on a root path. We'd rather handle these at the web server level rather than using the Redirect module (if it can even do match based rules), so we put these rules in the
.htaccess file, e.g.:
RedirectMatch 301 ^/computing/hpc[/]?(.*) https://hpc.our.domain/$1
.htaccess file is updated with a composer install because of the scaffolding, what is the best process for adding our rules to the file? I’m not looking to prevent the scaffolding from updating the
.htaccess file, but I may need to modify our patch from time to time so that it is applied to the newest version.
How do you go about editing and updating the patch when something needs to get added or removed?