以下行可用于重定向https:
RewriteCond %{HTTPS} !=on
# This checks to make sure the connection is not already HTTPS
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
但是我要使用http而不是https作为以下网址:
https://www.aplombtechbd.com/firmware
我该怎么做。我正在使用drupal7 CMS和apache服务器。 我尝试如下:
RewriteCond %{HTTPS} !=on
RewriteCond %{THE_REQUEST} !/firmware/ [NC]
# This checks to make sure the connection is not already HTTPS
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
但是没有运气。任何想法?
N.B:我经历了所有先前提出的问题,但没有运气。