【问题标题】:Inspect URL path in Google Search Console在 Google Search Console 中检查 URL 路径
【发布时间】:2020-09-21 15:19:27
【问题描述】:
【问题讨论】:
标签:
google-developers-console
google-crawlers
【解决方案1】:
我认为这有点离题,但是,我会回答您的问题,然后提供我自己的最佳实践建议。
目前,您可以通过将所需参数直接输入到查询字符串中来实现您想要做的事情。正如您所注意到的,这样做的问题在于,如果 Google 更改其 URL 约定,您的链接将停止工作。
https://search.google.com/search-console/performance/search-analytics?resource_id=sc-domain%3Aexample.com&breakdown=page&metrics=CLICKS%2CIMPRESSIONS%2CPOSITION&page=!https%3A%2F%2Fexample.com%2F&num_of_months=3
Search Console 现在支持使用正则表达式 (Re2)。虽然这需要额外的步骤,但这对您来说会更加一致。
-
为 GSC 网址添加书签:https://search.google.com/search-console
-
转到您想要的属性,单击性能,创建一个新过滤器并选择“自定义(正则表达式)”,然后插入您的表达式。
这些将帮助您入门:
Matches URL slug
^[foo]+(?:-[bar]+)*$
All urls within /page
(http|https):\/\/www.example.com\/foo\/.*
All urls between a certain slug and ending
(http|https):\/\/www.example.com\/foo\/[^\/]+\/bar
希望这会有所帮助(尽管一年后)。