I want to deny all anonymous users by default yet allow anonymous users for a specific virtual path; the virtual path is created by a wordpress htaccess + php
Current Setup
AuthUserFile /var/www/domains/dev/.htpasswd AuthType Basic AuthName "Password Required" Require user jackson dawna Order Deny,Allow Deny from All <If "%{REQUEST_URI} =~ m#/sites/dawna/wordpress/wp-json/wp/v2/.*#"> Order Allow,Deny Allow from All Satisfy Any </If> Satisfy Any Problem
The above code denies all users and asks for credentials. However if I switch global to Allow from All and the If to Deny from All then this works as expected, only denying the specified route
Question
How can I allow anonymous visitors to my virtual route while making everything else password protected?