Mobile app version of vmapp.org
Login or Join
Martha676

: 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

@Martha676

Posted in: #CanonicalUrl #Seo

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Martha676

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ogunnowo487

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme