0

私は今.htaccessにこのコードを持っています:

RewriteCond %{HTTP_HOST}   !^$
RewriteCond %{HTTP_HOST}   !^www\.          [NC]
RewriteCond %{HTTP_HOST}   (.+)$
RewriteRule ^(.*)          http://www.%1/$1 [L,R=301]

ここで、cgi スクリプト cgi-bin/test.cgi をhttps://www.example.com/cgi-bin/test.cgiにリダイレクトする必要があります

私はすでに試しました

RewriteRule ^cgi-bin/test.cgi$ https://www.example.com/cgi-bin/test.cgi [L]

その他のバリエーションがありますが、機能しません

助けてください!

4

1 に答える 1

0

試す:

RewriteCond %{HTTPS} off
RewriteRule ^cgi-bin/test.cgi$ https://www.example.com/cgi-bin/test.cgi [L,R]
于 2013-10-30T00:04:30.523 に答える