Mod Security - How to create and edit specific rules for a website?

I found this method, does it work with CyberPanel + OLS too? Just put it in .htaccess ?

3. Disable mod_security for Specific URLs

<IfModule mod_security.c> 
<If "%{REQUEST_URI} =~ m#/admin/#"> 
SecFilterEngine Off SecFilterScanPOST Off 

For me it doesn’t work at all, not even restarting the OLS