There is a ton of things in my main htaccess file for my site to function properly. I added redirects for migrated pages. I do not have root access to the server and using .htaccess is my only option.
Is it possible to include separate files for redirects in a .htaccess file so that I can save them separately and write programmatically to additional files in which my redirects are stored?
Basically, I want to reference individual files from my .htaccess to manage rules dynamically, and also to create one long .htaccess file with several smaller files.
I also want to add on-the-fly forwarding rules as things are changing on my site.
source share