: Should the canonical tag point to the rewritten URL of the page even if it doesn't have a valid directory structure? The structure of my url is http://www.somesomewebsite.com/ShowProduct.aspx?ID=12.
The structure of my url is www.somesomewebsite.com/ShowProduct.aspx?ID=12.
I am doing a permanent redirect (301) to www.somewebsite.com/product-category/12/this-is-my-product-name/. However if the user types just www.somewebsite.com/product-category/12/ he/she is given a 404 error.
What should my Canonical URL point to?
www.somesomewebsite.com/ShowProduct.aspx?ID=12
OR
www.somewebsite.com/product-category/12/this-is-my-product-name/
More posts by @Hamaas447
2 Comments
Sorted by latest first Latest Oldest Best
When making URLs available to the public, always try the friendly URL approach instead of the old fashioned approach. This means you want:
www.somewebsite.com/product-category/12/this-is-my-product-name/
I am doing a permanent redirect (301) to www.somewebsite.com/product-category/12/this-is-my-product-name/. However if the user types just www.somewebsite.com/product-category/12/ he/she is given a 404 error.
This URL:
www.somewebsite.com/product-category/12/
doesn't get crawled by anything unless it is advertised anywhere on the web (including your website) without the "nofollow" keyword included in the anchor tag pointing to the link.
For example, submitting the above link to a sitemap will cause the search engine to crawl it.
The above link producing a 404 does not need attention at this time until you are almost ready to make it public.
The canonical URL should be the URL you want Google to show in their search results. So:
www.somewebsite.com/product-category/12/this-is-my-product-name/
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.