c# - How to intercept the external hyperlinks in MVC3 -


i have situation, 2 web sites using same data (main version , mobile). in pages of main version have internal links www.domain.com/link1... when mobile version uses same hyperlink directs user context main site need intercept request , handle , redirect user need in case of mobile version.

let's in main version of site in www.domain.com/about/strategy.aspx (webforms) page have absolute url www.domain.com/services/item.aspx?id=1256 , ok. when got same page on mobile.domain.com/about/strategy (mvc) want change link www.domain.com/services/item.aspx?id=1256 mobile.domain.com/services/1256. problem have > 10000 of pages absolute urls , content managers go crazy managing problem.

any idea?

probably if looking user friendly urls in web forms answer url rewriting.

you can find third party/open source dlls functionality.

let me know if wrong require.:)


Comments