Hi,

I'm not sure if it's the right section to post but... I came across a strange problem. I saw google starting to index my website with urls like /node/45/18 although I have pathauto and global redirect enabled and working.

The global redirect works well with urls like /node/xx, but it stops working with urls like /node/xx/xx. I think drupal should redirect to a 404 error, but no: if you have a page like /node/25 that redirects to /my-nice-page, you can try on your site to go to /node/25/xx and it will show you the content of /my-nice-page.

I tried this issue on several drupal sites. You can, for example try it here:

http://drupal.org/node/10254/ ==> http://drupal.org/node/10254/xx ==> http://drupal.org/node/10254/Whatever/foo

For my website this is a real issue as I don't want search engines to index that kind of urls (btw I don't know how google found urls like /node/number/number/ on my site), so what I did is to Disallow /node/ in robots.txt.

Any help would be greatly appreciated

Comments

skein’s picture

You can change the robots txt to index anything above the second argument or anything with node in it