Try Now
More in this section

Forums / General Discussions / Need help with URL Mapping and redirection

Need help with URL Mapping and redirection

2 posts, 0 answered
  1. P M
    P M avatar
    1 posts
    13 May 2010
    18 Mar 2011
    Link to this post
    Hi All,

    I need help in URL mapping for sitefinity.

    Basically I have two websites on same IIS with same codebase. One is for mobile and another one is for desktop.
    I have Global.asax file to handle the HTTP request to check if user is coming from mobile browser or desktop browser . If user is entering desktop site URL on mobile site then the request gets redirected to mobile site.

    Now i am have the URL mapping in the web.config file to show friendly URL.

    But now after this the redirection logic is not working. not sure if URL mapping overwrites global.asax logic.

    Thanks for any help.
  2. Georgi
    Georgi avatar
    3583 posts
    10 Oct 2016
    24 Mar 2011
    Link to this post
    Hello P M,

    On which event do you try to handle the request? It's possible that the rewriting happens before that event. Is it on BeginRequest?

    All the best,
    the Telerik team
2 posts, 0 answered