1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Forum url rewriting

Forum url rewriting

2 posts, 0 answered
  1. Paul
    Paul avatar
    176 posts
    Registered:
    18 Nov 2008
    24 Apr 2009
    Link to this post

    Hi!

    I want to use url rewriting for forum modules. How can I do this? 

  2. Parvan
    Parvan avatar
    151 posts
    Registered:
    24 Sep 2012
    24 Apr 2009
    Link to this post
    Hi Paul,

    Check this forum thread - Generate url for a forum post.
    There is an example how to use the Url Rewriting feature of Sitefinity for rewriting forum urls.

    You can make the urls friendly using the Url Rewriting feature of Sitefinity:
    1. Setup the Url Rewriter - follow the steps in the User Manual - section Url Rewriting.
    2. Add your custom rewriting rules. For example this rule will allow you to request your thread page with link in this form - http://server.com/yourForumPage/<id of the thread>.aspx 
    <urlrewrites> 
        <rule> 
            <url>/yourForumPage/([^\.]*)\.aspx</url> 
            <rewrite>/yourForumPage.aspx?mode=singleThread&amp;thread=$1</rewrite> 
        </rule> 
    </urlrewrites> 



    Best wishes,
    Parvan
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
2 posts, 0 answered