This project is read-only.

Better URL for MVC Forum

Jun 12, 2012 at 3:40 PM
Edited Jun 12, 2012 at 3:44 PM

We're in the process of changing the URLs in MVC Forum, so we would like some feedback on how they should look.

We're keeping MVC Forum as an MVC area, so the URLs will start with "forum".

So what's the best URL for a root forum?
/forum/{forum title} or /forum/forum/{forum title}/{id} or ??

The best URL for a category?
/forum/category/{category title} or ??

The best URL for a topic?
/forum/{forum title}/{topic title} or ??

Generally speaking IDs would be nice in the URL, it's fastest to load a forum/topic/whatever on its ID instead of going by the title, especially because the title will have to be URL friendly, so we can't do a "where title = 'title'".

Jun 12, 2012 at 9:22 PM

Personally I do not see any reasons to do any nesting. Just simply

for cats: /forum/viewforum.aspx?id=2

for topics: /forum/viewtopic.aspx?id=2471

it's maybe good do use topics name instead of ID, because its SEO friendly /forum/{topic title}

>/forum/category/{category title} or ??

In such situation if you will move topiс from one cat to another, the external link would broken. It's not good solution.

Jun 13, 2012 at 10:26 AM

Good point, moving topic would break any link from outside the site.

I'll stay away from nesting, or if I do any nesting, I'll make sure to make sure to do a 301 return code to a not-nested URL.


Thank you