Is there a way through the admin screens to remove "/post" from each post's URL?

Topics: ASP.NET 2.0, Business Logic Layer, Controls, Themes
May 20, 2009 at 4:00 PM
Edited May 20, 2009 at 4:00 PM

We would like our posts to be named http://www.example.com/blog/name-of-our-post.aspx.  However, it seems that the system forcibly adds a "/post" folder name to the URL yielding URLs like http://www.example.com/blog/post/name-of-our-post.aspx.  I hate this type of naming scheme because users will frequently truncate the last portion of a URL to navigate up a level yielding a URL like http://www.example.com/blog/post/ which of course does not exist and throws a 404 error.

Is there a setting somewhere that controls whether the unneeded "/post" folder name is added to the URLs or not?

Thanks in advance!

Coordinator
May 20, 2009 at 9:07 PM

There's no setting.  You could modify the source code.  This would include modifying the BE Core code and re-compiling.

BE uses the /post virtual subdirectory to be able to easily determine when a post is being requested.

It would probably be easier to setup a 404 error handler that looks for 404 errors to example.com/blog/post/ and then redirect them to the blog home page.