Hi,
CyberPanel uses OpenLiteSpeed by default, which supports Rewrite rules only. So, you might want to rewrite those custom rules to rewriterules, otherwise, rules will just be bypass.
https://blog.cyberpanel.net/2018/04/07/how-to-write-rewrite-rules-for-openlitespeed/