Community discussion forum

UrlRewriting - How should i do

  • 11 months ago
    Hello. How should i write a UrlRewrite class to rewrite like: ~/Page.aspx?id=2&l=en to ~/Page_{id}_{l}.aspx or ~/Page/{l}_{id}.aspx Or use sql to get out the title of the request id and rewrite it to ~/{title}.aspx I have search of google but not found any good way, and i don't want to have so mutch code in web.config with url, just in the C# class.
    Post was edited on 27/12/2008 01:28:46 Report abuse
  • 11 months ago
    Try this http://dotnetguts.blogspot.com/2008/07/url-rewriting-with-urlrewriternet.html http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx

Post a reply

Enter your message below

Sign in or Join us (it's free).

Want to stay in touch with what's going on? Follow us on twitter!