How to apply these rewrite rules?

I've protected the wp-admin directory with basic auth but need to make an exception for one file located in this folder.

The rules are as following:

<Files admin-ajax.php>
Order allow,deny
Allow from all
Satisfy any

How to apply these rules?


Hi @ckissi

So it's not actually possible to apply those rules specifically.

One idea is to set up the protected realm context with a regex URI match instead of just /wp-admin/