Portal Engine
Version 3.x > Portal Engine > URL handling View modes: 
User avatar
Member
Member
bill - 2/23/2009 2:08:16 PM
   
URL handling
I have a 3rd party blog engine (dotnetblogengine) that i would like to incorporate into Kentico.

I'm not sure how i should go about handling 'pretty urls' , e.g

http://mysite.com/blog/a_nice_blog_title

Ideally i would have this captured by blog.aspx, and then have a web control that interprets 'a_nice_blog_title' and finds the story.

Any suggestions?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/5/2009 8:21:26 AM
   
RE:URL handling
Hi,

In general you can set the extension less URLs - http://www.kentico.com/docs/devguide/configuration_of_extension_les.htm.

Or, you can set the URLs for each document separately - http://www.kentico.com/docs/devguide/urls.htm.

Please note - you need to configure your IIS to handle appropriate requests.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
bill - 3/5/2009 9:25:03 AM
   
RE:URL handling
Right, I guess the concern here, is that my kentico page will be

site.com/blog/

which is fine, but then if they hit

site.com/blog/a_pretty_blog_title

then I'd like that to be caught by the blog page, and a webpart on that page use a_pretty_blog_title as a parameter

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 3/9/2009 3:57:53 PM
   
RE:URL handling
Hi,

I believe you are looking for so-called Wildcard URLs, a new feature in version 4.0.

With this feature properly set, you could specify URL for your blog in the form:

/blog/{prettyBlogTitle}

and then in the blog.aspx (i.e. the page wildcard url is set for) in code-behind, you can access the querystring field prettyBlogTitle with the value starting behind the "...blog/" url part (e.g. "a_pretty_blog_title" according to your description).

The feature description and examples are here: Wildcard URLs in DevGuide article

Hope this is suitable for your aims.

Regards,
Zdenek C.