[英]How to redirect a specific URL with .htaccess
I want to redirect http to https some specific url like login, signup 我想将http重定向到https一些特定的URL,如登录,注册
currently i am using bellow .htaccess 目前我正在使用波纹管.htaccess
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
using this all page redirect to https but i want to redirect only example.com/login
and example .com/signup
使用此所有页面重定向到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]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.