How to apply these rewrite rules?

Discussion in 'General OpenLiteSpeed Discussion' started by ckissi, Jul 26, 2017.

  1. ckissi

    ckissi Member

    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?
  2. lsfoo

    lsfoo Administrator

    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/

Share This Page