Custom htaccess rules for my site

Defender shows “The rules can’t apply to your host.” error when I try to add Prevent PHP execution and Prevent Information Disclosure in security tweaks. Also, some URL returns 403 on my site.