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
Since the .htaccess
file is updated with a composer install, what is the best process for adding our rules to the file?