回答編集履歴
2
正規表現の見直し
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
```
|
10
10
|
|
11
|
-
RewriteCond %{REQUEST_URI} /api/update/(.*)/(.*)/(.*)/(.*)
|
11
|
+
RewriteCond %{REQUEST_URI} ^/api/update/(.*)/(.*)/(.*)/(.*)
|
12
12
|
|
13
13
|
```
|
14
14
|
|
1
加筆修正
test
CHANGED
@@ -17,3 +17,9 @@
|
|
17
17
|
[http://httpd.apache.org/docs/current/mod/mod_rewrite.html](http://httpd.apache.org/docs/current/mod/mod_rewrite.html)によると、
|
18
18
|
|
19
19
|
REQUEST_URIの場合は「/」からの絶対パス名で記述する必要がありそう。
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
なお、mod_rewriteのデバッグのために、ログレベルなどを調整すると良いかも。
|
24
|
+
|
25
|
+
[Apacheのrewritelogの出力方法(Apache2.2とApache2.4で違います) - Qiita](https://qiita.com/tomozo6/items/a7114d9cbbc1c7cbcb20)
|