Replies: 1 comment
-
|
Hi @Bunrot14, thanks for participating! Unfortunately, we don’t currently have moderators for languages other than English. Until that changes, we need to ask that everyone use English here in the GitHub Community when posting to ensure discussions are adhering to our Code of Conduct. We’ll be locking this post for now, but please feel encouraged to create a new discussion in English if you still need support. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
現在、GitHub Pagesでホストしているウェブサイトのファイルにおいて、HTTPレスポンスヘッダーに Content-Type が含まれず、その結果としてGoogle Search Consoleでサイトマップが正しく読み込まれないという問題が発生しております。
問題の詳細:
リポジトリ https://github.com/Bunrot14/kana-kan-typing/ にて公開しているGitHub Pagesサイト (https://bunrot14.github.io/kana-kan-typing/) 上のファイルにブラウザのデベロッパーツールでアクセスした際、レスポンスヘッダーに Content-Type が含まれていません。
この現象は、サイトマップファイル (sitemap.xml) だけでなく、テストのために拡張子を変更したファイル (.txt, .html) でも同様に確認されました。
影響:
Content-Type ヘッダーがないため、Google Search Consoleでサイトマップ (https://bunrot14.github.io/kana-kan-typing/sitemap.xml) を送信した際に、「サイトマップを読み込めませんでした」というエラーが発生し、サイトマップが正常に処理されません。
確認したURLの例とレスポンスヘッダーの状況:
https://bunrot14.github.io/kana-kan-typing/sitemap.xml
https://bunrot14.github.io/kana-kan-typing/sitemap.txt (テスト用)
https://bunrot14.github.io/kana-kan-typing/sitemap.html (テスト用)
上記いずれのURLでも、レスポンスヘッダーに Content-Type が含まれていないことを確認済みです。(必要であればスクリーンショットを提出可能です)
試したこと:
・サイトマップファイルの構文検証 (外部ツールで問題なしと判定)。
・シンプルな内容のサイトマップファイルでのテスト (同様に Content-Type がなく、Search Consoleでエラー)。
・Google Search ConsoleのURL検査ツールでは、サイトマップURLへのアクセス自体は成功していると表示されますが、サイトマップとしては認識されません。
期待する解決策:
GitHub Pagesから配信されるファイル(特に .xml, .txt, .html ファイル)のレスポンスヘッダーに、ファイル拡張子に応じた適切な Content-Type (例: application/xml, text/plain, text/html) が付与されるようにしたいです。
この問題により、ウェブサイトのSEOに必要なサイトマップの登録ができない状況となっており、大変困っております。
お忙しいところ恐縮ですが、ご協力いただけますよう、何卒よろしくお願い申し上げます。
Beta Was this translation helpful? Give feedback.
All reactions