I just found that search engines are indexing http://www.sitename/taxonomy/term/1/0 and taking them like duplicated with http://www.sitename/taxonomy/term/1/0, doesnt matter what number or letter you type at the end of it (for example http://www.sitename/taxonomy/term/1/10323) it will send 200 code:

GET /taxonomy/term/1/081378dha HTTP/1.1
HTTP/1.x 200 OK

Its posible that global redirect module would redirect all that code with 301 to its true location http://www.sitename/taxonomy/term/1/0 ?

Thanks.

Comments

nicholasthompson’s picture

Status: Active » Closed (duplicate)

The number at the end actually represents the depth. Zero (0) means all the nodes within that term and all child terms. One (1) is a single level depth (ie the current term only, no children), and so on...

I agree that /0 should redirect to the "root" term page (ie with the /0) but in terms of the other numbers... I think that should probably be handled by the Taxonomy module (eg, if a number if provided which is larger than the number of descendants for that term then display a 404, etc).

In any case, the bulk of this issue is actually a duplicate of #258399: Patch for taxonomy/term/tid/0 URLs in D6 version albeit for Drupal 5 and not 6 - but the principal will be the same in both cases and will be ported to both modules depending which gets updated first.