いつもお世話になっております。
とあるサイトでいつからか添付のようなエラー画面(?)が表示されるようになってしまいました。
safariやfirefoxなどのブラウザでは問題なく表示されるのですが、chromeだけでこのような表示になっています。
※ windowsを持っていないので、windowsでのチェックは出来ていません。
こちらのサイトなどを参考に、Safe Browsing API
を使ってチェックをしてみたのですが、結果は問題無しの
"{}"
が返却されてきました。
Googole Cloud PlatformのAPI Keyで設定したAPIキーのサービスの利用状況がカウントされていたので、設定等は間違っていないかと思っております。
1行ずつ対象サイトのHTMLを削除してどういう場合がNGになるのかを調べてみました。
NGの場合
<html> <head> <link rel="stylesheet" href="/js/test.css"> </head> <body> test <script src="test.js"></script> </body></html
OKの場合
<html> <head> <link rel="stylesheet" href="/javascript/test.css"> </head> <body> test <script src="test.js"></script> </body></html
上記のように、cssを読み込む場合に/js
という文字列があると、どうやらこの画面が表示されているようでした。
※ cssだけじゃなく、javascriptを読み込むときも<script src="/js/test.js"></script>
はNGで<script src="/javascript/test.js"></script>
はOKでした。
/js
という文字を使わなければ発生しないので、一旦はそれで回避をしようと思っているのですが、原因不明なままが気持ち悪いので、どなたかこの原因がおわかりになる方がいらっしゃいましたらご教授頂けませんでしょうか。
設置しているサーバーは「さくらインターネット」の共有のレンタルサーバーを使用しています。
何卒、よろしくお願いいたします。
.htaccess
Action myphp-script /php.cgi AddHandler myphp-script .php .html RewriteEngine on RewriteCond %{HTTP_HOST} ^example.jp$ RewriteRule ^(.*) http://www.example.jp/$1 [R=301,L] Redirect permanent /guide.html https://www.example.jp/guide/index.html Redirect permanent /attention/index.html https://www.example.jp/guide/attention.html Redirect permanent /shop.html https://www.example.jp/shop/index.html Redirect permanent /access.html https://www.example.jp/shop/access.html Redirect permanent /faq.html https://www.example.jp/faq/index.html Redirect permanent /reserve.html https://www.example.jp/reserve/index.html Redirect permanent /contact.php https://www.example.jp/contact/index.html Redirect permanent /sitemap.html https://www.example.jp/sitemap/index.html Redirect permanent /privacy.html https://www.example.jp/privacy/index.html AddDefaultCharset utf-8 AddType "text/html; charset=utf-8" html php <IfModule mod_php5.c> php_value mbstring.internal_encoding utf-8 php_value default_charset utf-8 php_value mbstring.http_output utf-8 php_value mbstring.language utf-8 php_value mbstring.http_input auto php_flag mbstring.encoding_translation On php_value output_handler mb_output_handler </IfModule> #SetEnvIf REDIRECT_HTTPS (.*) HTTPS=$1 <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{ENV:HTTPS} !on RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] </IfModule>