By default, umbraco hides the top-level node from the URL since it generally adds unhelpful extra items to the url.
Here's how a content section is typically structured and the associated urls umbraco creates by default:
CONTENT + Home (url = /home.aspx as well as /) + Products (url = /products.aspx) - Widget A (url = /products/widget-a.aspx) - Widget B (url = /products/widget-b.aspx) - Contact Us (url = /contact-us.aspx) - About Us (url = /about-us.aspx)
But if you want to include the 'home' node in the url of all its subpages... just change the following line in the web.config file.
You'll then need to publish the home page and all it's children for umbraco to recalculate the urls. Just right-click on the home page and select the 'Publish' menu. Be sure to click the 'publish child nodes' option as well.
Nesting a URL
Hi there - I've created a logical tree structure for my site - how do I make the URL reflect that of my hierarchy.
E.g. I was expecting
Home
+ Hello World
To yield the following URL:
http://localhost/Home/Hello-World.aspx
but it gives me:
http://localhost/Hello-World.aspx
What do I change?
Thanks!
Home is usually the root of your website - So you would expect to see a url of just hello-world.aspx? Why do you want the URL with Home in it?
By default, umbraco hides the top-level node from the URL since it generally adds unhelpful extra items to the url.
Here's how a content section is typically structured and the associated urls umbraco creates by default:
But if you want to include the 'home' node in the url of all its subpages... just change the following line in the web.config file.
You'll then need to publish the home page and all it's children for umbraco to recalculate the urls. Just right-click on the home page and select the 'Publish' menu. Be sure to click the 'publish child nodes' option as well.
cheers,
doug.
Great stuff - thanks guys. I found your reply particularly useful Douglas, well explained.
BTW - I used to live in Cambridge - miss the place :(
You should mark Doug's solution as the answer, so people struggling with same issue may use this as a reference.
Cheers,
/Dirk
is working on a reply...