.htaccess https htaccess仅排除一个文件夹重定向到https

.htaccess https htaccess仅排除一个文件夹重定向到https,.htaccess,redirect,https,.htaccess,Redirect,Https,我在我的网站上激活了https,并将其添加到.htaccess RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC] RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L] RewriteCond %{HTTPS} on RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC] Rew

我在我的网站上激活了https,并将其添加到.htaccess

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L]

RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI} [R=302,L]

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L]
这一切都没问题,但我想添加一个例外到一个单一的文件夹,只是不被重定向到https。
文件夹是“public_html/files”

我的评论在哪里?为什么我的评论不清晰?