How to apply these rewrite rules?

#1
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
</Files>

How to apply these rules?
 
#2
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/
 
Top