回答編集履歴

1

誤り訂正

2019/06/15 06:07

投稿

otn
otn

スコア84571

test CHANGED
@@ -10,11 +10,11 @@
10
10
 
11
11
  RewriteCond %{SERVER_PORT} 80
12
12
 
13
- RewriteRule ^/test1/(.*) https://AAAhost:56000/$1 [R=301,L]
13
+ RewriteRule ^test1/(.*) https://AAAhost:56000/$1 [R=301,L]
14
14
 
15
15
  RewriteCond %{SERVER_PORT} 443
16
16
 
17
- RewriteRule ^/test1/(.*) https://AAAhost:56000/$1 [R=301,L]
17
+ RewriteRule ^test1/(.*) https://AAAhost:56000/$1 [R=301,L]
18
18
 
19
19
  # or条件で書くと
20
20
 
@@ -24,7 +24,7 @@
24
24
 
25
25
  RewriteCond %{SERVER_PORT} 443
26
26
 
27
- RewriteRule ^/test1/(.*) https://AAAhost:56000/$1 [R=301,L]
27
+ RewriteRule ^test1/(.*) https://AAAhost:56000/$1 [R=301,L]
28
28
 
29
29
  # 普通はこうか
30
30
 
@@ -32,6 +32,8 @@
32
32
 
33
33
  RewriteCond %{SERVER_PORT} !56000
34
34
 
35
- RewriteRule ^/test1/(.*) https://AAAhost:56000/$1 [R=301,L]
35
+ RewriteRule ^test1/(.*) https://AAAhost:56000/$1 [R=301,L]
36
36
 
37
37
  ```
38
+
39
+ ↑訂正しました。