質問編集履歴
1
質問の補足
test
CHANGED
File without changes
|
test
CHANGED
@@ -47,3 +47,93 @@
|
|
47
47
|
https:// aaa.com/cc.html内に、javascriptによるdd.htmlへのジャンプメニューが存在しますが、
|
48
48
|
|
49
49
|
https:// aaa.com/cc.html/dd.htmlというリンクは存在しません。
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
補足.htaccessの設定です
|
56
|
+
|
57
|
+
```ここに言語を入力
|
58
|
+
|
59
|
+
AddType application/x-httpd-php .html .js .inc
|
60
|
+
|
61
|
+
RedirectMatch gone ^/apple-touch-icon*
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
<IfModule mod_deflate.c>
|
66
|
+
|
67
|
+
SetOutputFilter DEFLATE
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
#古いブラウザ対策
|
72
|
+
|
73
|
+
BrowserMatch ^Mozilla/4.0[678] no-gzip
|
74
|
+
|
75
|
+
BrowserMatch ^Mozilla/4 gzip-only-text/html
|
76
|
+
|
77
|
+
BrowserMatch \bMSIE\s(7|8) !no-gzip !gzip-only-text/html
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
#画像は圧縮しない GIF、JPEG、PNG、ICO
|
82
|
+
|
83
|
+
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png|ico)$ no-gzip dont-vary
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
</IfModule>
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
#検索エンジンのUserAgentを環境変数に代入
|
92
|
+
|
93
|
+
SetEnvIf User-Agent "Googlebot" allowbot
|
94
|
+
|
95
|
+
SetEnvIf User-Agent "msnbot" allowbot
|
96
|
+
|
97
|
+
SetEnvIf User-Agent "bingbot" allowbot
|
98
|
+
|
99
|
+
SetEnvIf User-Agent "Slurp" allowbot
|
100
|
+
|
101
|
+
SetEnvIf User-Agent "Y!J" allowbot
|
102
|
+
|
103
|
+
SetEnvIf User-Agent "archive.org_bot" allowbot
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
#一旦、すべてのアクセスを拒否
|
108
|
+
|
109
|
+
order deny,allow
|
110
|
+
|
111
|
+
deny from all
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
#検索エンジンからのアクセスを許可
|
116
|
+
|
117
|
+
allow from env=allowbot
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
allow from googlebot.com
|
122
|
+
|
123
|
+
allow from google.com
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
#許可するIPアドレスを一覧で記述
|
130
|
+
|
131
|
+
allow from 1.0.16.0/20
|
132
|
+
|
133
|
+
allow from 1.0.64.0/18
|
134
|
+
|
135
|
+
allow from 1.1.64.0/18
|
136
|
+
|
137
|
+
・・・省略
|
138
|
+
|
139
|
+
```
|