我想将http重定向到https一些特定的URL,例如登录,注册
目前我正在使用波纹管.htaccess
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
使用此所有页面重定向到https,但我只想重定向example.com/login
和example .com/signup
RewriteCond %{HTTPS} =off
RewriteRule ^login https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTPS} =off
RewriteRule ^signup https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句