回答編集履歴

2

修正

2018/10/03 08:17

投稿

CHERRY
CHERRY

スコア25175

test CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  RewriteCond %{QUERY_STRING} wpdmdl
20
20
 
21
- RewriteRule ^(.*) - [F,L]
21
+ RewriteRule ^download/(.*) - [F,L]
22
22
 
23
23
  ```
24
24
 

1

修正。

2018/10/03 08:17

投稿

CHERRY
CHERRY

スコア25175

test CHANGED
@@ -18,20 +18,10 @@
18
18
 
19
19
  RewriteCond %{QUERY_STRING} wpdmdl
20
20
 
21
- RewriteRule ^(.*) /$1 [E= ACCESS_DENY:TRUE]
21
+ RewriteRule ^(.*) - [F,L]
22
-
23
- <LocationMatch "/download">
24
-
25
- order deny,allow
26
-
27
- Allow from all
28
-
29
- Deny from env= ACCESS_DENY
30
-
31
- </LocationMatch>
32
22
 
33
23
  ```
34
24
 
35
25
 
36
26
 
37
- QUERY_STRING でなければ、SetEnvIf で綺麗に書けるのにな...
27
+ [RewriteRule Flags](https://httpd.apache.org/docs/2.4/ja/rewrite/flags.html)