すべての接続をhtt_p://www.example.com/abc.htmlからHTTP_S://www.example.com/abc.htmlにリダイレクトしたいと思います。これにはどのmod_aliasまたはmod_rewriteコマンドが機能しますか?私はもう試した:
RewriteEngine on
RewriteCond %{HTTPS} =off
RewriteRule $abc\.html^ https://www.example.com/abc.html [R]
.htaccessとhttpd.confの両方にありますが、それは機能しません。RewriteRuleの最初の文字列が他の文字列(abz.htmlなど)の場合は機能しますが、abc.htmlの場合は機能しません。abc.htmlは、サーバー上の実際のファイルです(別のリダイレクトではありません)。オプションFollowSymlinksは、適切なDirectoryディレクティブにあります。
どうもありがとう。