I have an .htaccess file at the root of my server which has auth on it. I have a redirect statement that upon entering example.myserver.com instead of myserver.com redirects the user to a sub folder with Satisfy any in the .htaccess, BUT when using example.myserver.com the auth seems to kick in before the redirect happens, is there a way to let it see that the folder to redirect to is public?
Options -MultiViews +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.server.com$
RewriteRule ^(/)?$ subfolder [L]
AuthUserFile /var/.htpasswd
#AuthGroupFile /dev/null
AuthName Welcome
AuthType Basic
require user someone
IndexOptions +ShowForbidden
ErrorDocument 401 /error401.html
ErrorDocument 404 /errorGeneric.html
ErrorDocument 500 /errorGeneric.html
and the .htaccess of the subfolder just has Satisfy any
in it