teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

質問の補足

2019/12/19 06:17

投稿

u-sukesan
u-sukesan

スコア161

title CHANGED
File without changes
body CHANGED
@@ -22,4 +22,49 @@
22
22
  といったリダイレクトエラーの箇所は
23
23
 
24
24
  https:// aaa.com/cc.html内に、javascriptによるdd.htmlへのジャンプメニューが存在しますが、
25
- https:// aaa.com/cc.html/dd.htmlというリンクは存在しません。
25
+ https:// aaa.com/cc.html/dd.htmlというリンクは存在しません。
26
+
27
+
28
+ 補足.htaccessの設定です
29
+ ```ここに言語を入力
30
+ AddType application/x-httpd-php .html .js .inc
31
+ RedirectMatch gone ^/apple-touch-icon*
32
+
33
+ <IfModule mod_deflate.c>
34
+ SetOutputFilter DEFLATE
35
+
36
+ #古いブラウザ対策
37
+ BrowserMatch ^Mozilla/4.0[678] no-gzip
38
+ BrowserMatch ^Mozilla/4 gzip-only-text/html
39
+ BrowserMatch \bMSIE\s(7|8) !no-gzip !gzip-only-text/html
40
+
41
+ #画像は圧縮しない GIF、JPEG、PNG、ICO
42
+ SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png|ico)$ no-gzip dont-vary
43
+
44
+ </IfModule>
45
+
46
+ #検索エンジンのUserAgentを環境変数に代入
47
+ SetEnvIf User-Agent "Googlebot" allowbot
48
+ SetEnvIf User-Agent "msnbot" allowbot
49
+ SetEnvIf User-Agent "bingbot" allowbot
50
+ SetEnvIf User-Agent "Slurp" allowbot
51
+ SetEnvIf User-Agent "Y!J" allowbot
52
+ SetEnvIf User-Agent "archive.org_bot" allowbot
53
+
54
+ #一旦、すべてのアクセスを拒否
55
+ order deny,allow
56
+ deny from all
57
+
58
+ #検索エンジンからのアクセスを許可
59
+ allow from env=allowbot
60
+
61
+ allow from googlebot.com
62
+ allow from google.com
63
+
64
+
65
+ #許可するIPアドレスを一覧で記述
66
+ allow from 1.0.16.0/20
67
+ allow from 1.0.64.0/18
68
+ allow from 1.1.64.0/18
69
+ ・・・省略
70
+ ```