問題タブ [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.

0 投票する
1 に答える
845 参照

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か?