如何在Drupal网站中使用HTTP而不是https来表示特定的URL?

时间:2019-01-01 08:11:14

标签: .htaccess drupal-7

以下行可用于重定向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:我经历了所有先前提出的问题,但没有运气。

0 个答案:

没有答案