: Is it correct to have a canonical URL for a product category page that removes the category id parameter? I have a Rails application running on production server. And recently I implemented
I have a Rails application running on production server. And recently I implemented canonical URL on it as requested by higher order people. After implementing it I checked it some online checkers. This is what they are showing:
Page URL: example.com/search?category_id=metal-processing-and-machine-tool
Canonical URL: example.com/search
Result: CORRECT
Is this right? I am not quite convinced by the online checkers. Could somebody please explain me if this is right or wrong?
More posts by @Martha676
1 Comments
Sorted by latest first Latest Oldest Best
OP: That url is generated when a link saying Metal Processing and Machine tool is clicked. And it contains all the machines under that category.
ME: So, it's not really a "search results page" at all and is part of your site navigation / hierarchy?
OP: yes
After some discussion in chat it would seem that this is not a search results page after all (despite the "search result page" text in the title and search being part of the URL). In which case it probably should be crawled and indexed, so the canonical tag suggestion is not correct in this instance it seems.
Just to echo what Stephen was saying in comments... IF this was an arbitrary search results page (that accepts arbitrary input from the user) then you don't want it indexed or even crawled (Google recommendation and would waste bandwidth etc.). In this case, a canonical tag would not be enough, and it should be blocked in robots.txt - since you wouldn't even want the search engine bot to crawl the page in the first place.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.