What are you doing with URL's for Taxonomy terms, which tend to go in eternity, i.e.


which is identical with all

term/1 term/2 term/n etc....

They all show the same page?!


So, yeah, people, this appears a way bigger issue with Drupal as I initially assumed...

I found a few more discussions on this topic, dated 5 and 2 years ago and without any real solution. And the possible problem is - hundreds and thousands of duplicate content pages, strictly banned by Google and other search engines....

So here is my 2 cents:

  1. My first assumption was that I could do some simple re-direct....I would take this Match Redirect Module, which supports Wildcard redirects and do a few redirects like this:

node/ */ * to front

taxonomy/term/ */ * to front

taxonomy/term/ */feed/ * to front

-- But the Problem now is:

  • It makes impossible to Edit Nodes, which are by path....


---> So I need Exclusion -> but it's not supported in module....

So - I am still with problem....

I don't know .htaccess regex so good to write it, I will search around and learn again....

But if there are some people who could write this for us - it would be appreciated very much...

1 Answer 1


A taxonomy term page is reached through


In taxonomy_menu it is defined as:

 $items['taxonomy/term/%taxonomy_term'] = array(
    'title' => 'Taxonomy term',
    'title callback' => 'taxonomy_term_title',
    'title arguments' => array(2),
    'page callback' => 'taxonomy_term_page',
    'page arguments' => array(2),
    'access arguments' => array('access content'),
    'file' => 'taxonomy.pages.inc',

The page argument is set to the 2nd term counting from 0, which is %taxonomy_term.

It is therefore expecting to pass on one argument.

The page callback has this signature:

function taxonomy_term_page($term)

It also is expecting one argument (a loaded taxonomy object).

If you provide any extra arguments they are simply ignored as there is no better fit. However, if you look up a path such as:


then you are taken to the edit page because such a path actually exists and is the best fit. And if you look up a path such as:


then you will be taken to the ancestor that fits best, which will be the edit page again.

It has nothing to do with taxonomy terms per se, but with the way a menu callback expects arguments.

Read more here: hook_menu and Wildcard, ancestors and fitness

  • I didn't got from all this written how to escape duplicated content penalty from Google and others. And the same thing happens not only for taxonomy, but also for nodes... Aug 20, 2014 at 15:36
  • You have an incorrect idea of how search engines work. No search engine that I know of will make up arbitrary links to follow. The search engine will follow links that are on the page except if it has rel="nofollow" attribute. So how does a page like taxonomy/term/10/eternity/somemoreeternity get onto a page. Only if you put it there. Aug 20, 2014 at 17:33
  • Use Global Redirect and Pathauto to ensure accessibility, usability and SEO Aug 20, 2014 at 17:48
  • No, it's not me; I have seen how different Bots regularly scrap for non-existing pages, they got on Google; Google checks - Ohh, we see the same content by several URL's - it's a duplicate content, we ban that! For the same reason so many people put 'Nofollow' even for category/ archive etc. pages...I do Use Global Redirect, but it noway does help with those problems. Aug 20, 2014 at 18:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.