Forums / Developer / Url Alias question / Comment51487

Author Topic

Carlos Revillo

Friday 17 July 2009 5:31:06 am

Comment51487

Hi Max.

I don't really know if i really understand your question. Maybe my first post is not really clear.

what i want is:

If something types http://myhost/article in browser, he will showed the article at http://myhost/folder1/.../folder5/article. i don't want 301 redirection, so i choose 'direct type'.

Then, while listing the articles under folder5 i want that href will look like
<a href="/article">... and not <a href="/folder1/folder2/.../folder5/article">

if i use {$node.url_alias|ezurl} i always get that long path, and i would like to show the url_alias i've created for that deep node.

It's a question about usability and seo... i mean, suppose i have something like

news
------sports
-----------basketball
-----------------------nba.

then i create an url_alias. if something types nba he will be showed that deep node. for everybody it will be easy to remenber something like http://myhost/nba than http://myhost/news/sports/basketball/nba

but if tell other websites to link me at http://myhost/nba, having in my own listing things like http://myhost/news/sports/basketball/nba, spiders may think about duplicated content...