thitemple
thitemple

Reputation: 6059

Custom urls with Umbraco

I am creating a blog made with Umbraco 6 and I'd like to customize the urls.

When I create a blog post, the post is organized with the year/month/day structure and the url for post is blog.com/2013/2/19/title.aspx.

I'd like to keep the folder organization, but I'd like to change the url to blog.com/title.aspx

Is that possible? How can I do that?

Upvotes: 2

Views: 2147

Answers (1)

Douglas Ludlow
Douglas Ludlow

Reputation: 10922

One approach would be to use the umbracoUrlAlias property. On publish you could set the umbracoUrlAlias to the title. You may want to include some logic that ensures that the url is unique. You will also have to revise your navigation macros to use umbracoUrlAlias if there is one present instead of the NiceUrl.

Upvotes: 5

Related Questions