
Tengo un sitio web que está protegido con autenticación básica, excepto por un archivo, una carpeta y una ubicación URL reescrita.
Se parece a esto:
<Directory /var/www/mydomain.com>
AuthType Basic
AuthName "Authentication Required"
AuthUserFile "/etc/htpasswd.mydomain"
Require valid-user
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
<Location /manifest.webmanifest>
Satisfy Any
Allow from all
</Location>
<Location /icons/>
Satisfy Any
Allow from all
</Location>
<Location /receive>
Satisfy Any
Allow from all
</Location>
manifest.webmanifest
y los archivos en la /icons/
carpeta omiten la autenticación, pero /receive
no lo hacen. La diferencia obvia es que receive
no es un archivo real: se reescribe en /index.php para su procesamiento.
¿Cómo puedo hacer para omitir la autenticación de/recibir?
EDITAR: La reescritura ocurre en un archivo .htaccess:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}.php !-f
RewriteRule ^(.*)$ index.php?AppRouting=$1 [QSA]