I used the answer to this question a few weeks ago to achieve basic auth via htaccess for a wordpress, except for one sub-url: Exclusion of a protected sub-url does not work on Apache 2.4? This worked fine so far. The problem is, when I remove this now, the whole site does not work anymore. Logs just show a Http 302, Browser says connection didn't work. When I use telnet and say "GET /" the connection is closed.
I don't really understand why this is happening. Firefox webconsole shows that the client does not get any answer from the server. After you send the GET / nothing comes back.
After the auth-part in the htaccess there is a part for some rewrites, but that should work without the auth-part:
SetEnvIf Request_URI /someurl noauth=1
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /path/to/.htpasswd
<RequireAny>
Require env noauth
Require env REDIRECT_noauth
Require valid-user
</RequireAny>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
From what I understand, the fact that no answer is coming out at all the mistake should be in my apache-config, right? Any help is much appreciated.