Google Search Console > Page Indexing > Error: Alternate page with proper canonical tag. This is affecting as significant number of pages.
Contemplating updating robots.txt file to include the following entries. Would that be a good idea?
Note: All template pages have the correct canonical code.
Existing Canonical Code Example:
Robots.txt Example (Note: We would obviously not include # comments.):
How about disallowing a few API (e.g.: ReCAPTCHA, Analytics, etc.)?
Contemplating updating robots.txt file to include the following entries. Would that be a good idea?
Note: All template pages have the correct canonical code.
Existing Canonical Code Example:
Code:
<head> ... <link rel="canonical" href="https://www.[domain_name]/[category or product code].html" itemprop="url"> ... </head>
Code:
User-agent: * Disallow: *? #Disallow all URLs which include a question mark (?). Disallow: *Session_ID #Disallow all URLs which include a Session_ID. Disallow: *Screen #Disallow all URLs which include a Screen. Disallow: *Search #Is this a good idea? #Disallow all URLs which include a Search. Disallow: *CatListingOffset #Disallow all URLs which include a CatListingOffset. Disallow: *iframe #Disallow all URLs which include a iframe. Disallow: *AFFIL #Disallow all URLs which include a AFFIL. Disallow: /mm5/merchant.mvc #Is this a good idea? #Disallow all URLs which include a /mm5/merchant.mvc. Sitemap: https://www.[domain_name]/sitemap.xml (Note: This master sitemap already includes the two other sitemaps listed below, but search console did not pick it up, so I think it might be a good idea to list those in this file). Sitemap: https://www.[domain_name]/product_sitemap.xml Sitemap: https://www.[domain_name]/category_sitemap.xml
Comment