問題タブ [xml-sitemap]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
google-search-console - URL、サイトマップ、および Google クローラーによる処理で # をエスケープ
ハッシュ文字を含む URL が多数あります。ハッシュはフラグメントを示すのではなく%23
、URL パスの一部であるため、次のようにハッシュをエスケープします。
sitemap.xml
これらの URL を次のようにリストします。
現在、Google Search Console404
は次の URL のエラーを報告しています。
%23
の後の文字列が取り除かれていることに注意してください。サイトマップにたとえばhttp://example.com/example#1
が含まれている場合、この動作は理解できますが、意図的にハッシュ ( http://example.com/example%231
) をエンコードしています。
誤解している可能性のあるものはありますか、または 内でエスケープするための特別なルールはありますsitemap.xml
か?