Is it possible to have multiple url aliases to one node?

For example:

node/123

I want to have a menu item which links to test/node
and also another menu item elsewhere in the menu structure that links to test1/node

where test/node and test1/node link to the same node.

Thanks

Comments

vm’s picture

doing something like that constitues duplicate content I think and as such google will rank your site lower.

whitingx’s picture

Using the Paths module.

http://drupal.org/handbook/modules/path

But be careful;

Note that although it is possible to assign the same internal URL to multiple aliases, this is generally not a good idea if you care about your search engine rankings; Google for example penalises your site by dropping its rank if it thinks that you are publishing duplicate content under multiple URLs ...

Hope this helps.

bjalford’s picture

I'm not worried about ranking.

I've tried that. I can access the node via both url aliases by typing the addresses into the address bar of my browser, but not from menu item.

one the test menu, the item links to the correct page...test/node....but when I created another menu item in a different section of the menu structure..and link it to test2/node it says that in the URL alias but when I put click on the link it takes me to test/node.

I'm trying to get it to go to test2/node.

Any suggestions?

mdlueck’s picture

In D5, the first URL alias found in the DB table for a given path ends up being the URL alias used for that paticular real path for ALL menu entries.

Menu 1 -> URL Alias 1 -> xyz
Menu 2 -> URL Alias 1 -> xyz
etc...

Unfortunately that design drives the menuing engine nuts as it does not know which menu entry instance to open the leaf tree too.

WHICH IS WHY I CREATED UNIQUE URL ALIASES IN THE FIRST PLACE!!! GGGRRRR!!!

'tis worse in D6 as there the menu entry ends up being the xyz target even though what was entered was a URL alias. Totally going against the concept of URL aliases being Symbolic Links. The URL Alias is used for the runtime menu entry, just when you go back in to the menu editor, the target of the alias appears, not the URL alias. Further, if the URL alias is changed, the menu points at the old target, not the new target of the URL alias.

"URL Alias = Symbolic Link all places EXCEPT Drupal" (head shaking)

Digging through the code to figure out where this bad behavior comes from so I can make it work the way it should be... D5 first, D6 later. Anyone happen to know where this bad behavior is lurking in the current D5 code? I have not found it yet. TIA!

mdlueck’s picture

After further testing in D6... even though when I edit a menu entry with a URL Alias and it shows its bare destination... if I edit the URL Alias, then the menu entry does point at the updated node. The menu entry still must be set to the URL Alias, even though it shows the destination of the URL Alias in the menu entry edit mode.

Update: I opened a bug report against the current D6 concerning this observation:

"Destination of URL Alias shown in menu edit interface"
http://drupal.org/node/715890