回答編集履歴
1
コメントを受けて追記
test
CHANGED
@@ -27,3 +27,53 @@
|
|
27
27
|
RewriteRule ^(.*)$ https://suwakame346.web.fc2.com/blog [R=301,L]
|
28
28
|
|
29
29
|
```
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
----
|
34
|
+
|
35
|
+
追記:
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
以下のように`Location: https://wakame346.web.fc2.com/kaisou/blog`が返ってきますよ。
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
```
|
44
|
+
|
45
|
+
$ cat .htaccess
|
46
|
+
|
47
|
+
RewriteEngine On
|
48
|
+
|
49
|
+
RewriteRule ^(.*)$ https://wakame346.web.fc2.com/kaisou/blog [R=301,L]
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
$ wget --server-response --no-proxy http://localhost/blog/
|
54
|
+
|
55
|
+
--2019-08-22 17:11:40-- http://localhost/blog/
|
56
|
+
|
57
|
+
localhost (localhost) をDNSに問いあわせています... 127.0.0.1
|
58
|
+
|
59
|
+
localhost (localhost)|127.0.0.1|:80 に接続しています... 接続しました。
|
60
|
+
|
61
|
+
HTTP による接続要求を送信しました、応答を待っています...
|
62
|
+
|
63
|
+
HTTP/1.1 301 Moved Permanently
|
64
|
+
|
65
|
+
Date: Thu, 22 Aug 2019 08:11:40 GMT
|
66
|
+
|
67
|
+
Server: Apache/2.4.29 (Ubuntu)
|
68
|
+
|
69
|
+
Location: https://wakame346.web.fc2.com/kaisou/blog
|
70
|
+
|
71
|
+
Content-Length: 324
|
72
|
+
|
73
|
+
Keep-Alive: timeout=5, max=100
|
74
|
+
|
75
|
+
Connection: Keep-Alive
|
76
|
+
|
77
|
+
Content-Type: text/html; charset=iso-8859-1
|
78
|
+
|
79
|
+
```
|