My .htaccess
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=302,L]
RewriteCond %{SERVER_PORT} 443
RewriteCond %{REQUEST_URI} /docs/ [NC]
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=302,L]
Forwarding http to https works (first 2 lines).
http://www.xyz.com -> https://www.xyz.com
The folder /docs/ should be redirected to http (lines 3-5)
https://www.xyz.com/docs/ger/abc/1.html -> http://www.xyz.cm/docs/ger/abc/1.html
But i get error 310 (net::ERR_TOO_MANY_REDIRECTS) - it seems that I produce an infite loop, but how can I fix my mistake?
R=302 is only for testing will be finally replaced with R=301