今回のお悩み 「Google様に、Webページ「A.html」をインデックスしてもらいたい」 そう、Webサイトを作るすべての人たちの願いだよね。 ーー さて、今回インデックスしてもらいたいWebページ「A.html」はURLパラメータに応じて内容が変化するページである。 JavaScriptにより、URLパラメータに対応するデータを「data.json」から取得、レンダリングするというものだ(URLパラメータは「A.html?id=XX」と記述し、今回はid=1〜3まで存在するという設定)。 インデックスにはパラメータ別で登録したい。 つまり、id=1〜3の3ページ分を別々に登録する。 また、ページのタイトルやディスクリプションについても、パラメータごとに設定したものを検索結果に表示させたい。 最近のクローラーはJavaScriptでの処理も認識するとのことだが、果たして結果はー。 <!