What’s the difference between:
RewriteCond %{ENV:REDIRECT_STATUS} 200
RewriteRule ^ - [L]
and this one:
RewriteCond %{ENV:REDIRECT_STATUS} ^.
RewriteRule ^ - [L]
It happened that this last one used to work just fine for a long time, until suddenly it stopped working causing Apache to show the directory listing! The first one solved the issue.
So what’s wrong with the second one?
Thank you
Checks whether REDIRECT_STATUS environment variable is equal to 200 (in fact, the pattern will match any string containing 200).
Checks whether REDIRECT_STATUS environment variable is at least one character long.
The second one should work since 200 should match
^.. Perhaps the problem lies elsewhere.