回答編集履歴

1

追記

2022/02/28 15:53

投稿

otn
otn

スコア84594

test CHANGED
@@ -4,4 +4,11 @@
4
4
  RewriteCond %{HTTPS} off
5
5
  RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
6
6
  ```
7
-
7
+ VirtualHostの設定が修正できるなら、それぞれの80番ポートの所に書くのが良いです。
8
+ ```Apache
9
+ <VirtualHost *:80>
10
+ ServerName example.jp
11
+ Redirect permanent / https://example.jp/
12
+ ~~~~
13
+ </VirtualHost>
14
+ ```