问题原文
原帖链接 · Rmanshk · CC BY-SA 4.0
As you can see in the screenshot below, my site has a lot of "excluded" links, more than 34K, which is unusual:
However I don't have that many links in my website:
I'm worried about my SEO and search appearance.
I found out that all the links that are excluded have "?" in their address, but I don't need them at all.
So I tried to not index them using my robots.txt, which appears like this:
User-agent: *
Disallow: /*?*
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Is this OK? Is there any other way to handle this?
By the way, I'm using WordPress and a custom theme and plugins.
已采纳解答
原帖链接 · Stephen Ostermiller · CC BY-SA 4.0
Your canonical tag is already taking care of most of the problem. There is no need to remove the URLs from Google Search Console. Google gives you these reports because you may find them useful, not because they are problems that need to be fixed for better SEO.
The only other thing that you could do is figure out where these pages are getting links and stop those links from happening. Usually when there are suddenly so many pages linked with parameters, it is your own site doing the linking. It could also be an advertising campaign or some other site.
If it is your own site, modify it to link without unnecessary parameters. In WordPress this could be a plugin you installed.
If it is an advertising campaign, use the standard Google Analytics UTM tracking parameters that Googlebot mostly ignores anyway.
If it is the same tracking parameter added to many different links you can also use the Google Search Console URL Parameter Tool. If you set that parameter to "passive" parameter that doesn't change the page content, Googlebot will stop crawling them and assign the value of the links to one representative URL.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
