Setup global rewrite rules


I’m trying to setup a couple of rewrite rules at server level. At this seems not possible I’m looking forward to know what is the best way to set those rules without need to edit manualy every domain’s htaccess or vhosts files

I’ve found this, but it’s for DirectAdmin only: How to Add Rewrite Rules with OpenLitespeed and DirectAdmin | VPSBasics

Is there something similar in CyberPanel?

I appreciate any help. Thanks!

Ok, I’ve found it: cyberpanel/plogical/

It’s a pitty the template is harcoded. I think it should be possible to read the templates from an external files that can be overwritten with a custom configuration.