« Previous Next »

Thread: Rewriting URL in page

Last post 07-03-2008 6:13 PM by keistokas. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 07-03-2008, 5:15 PM

    Rewriting URL in page

    Does it mean, that given URL rewritter don't rewrite automatically URL's in the ASP.NET page. For example - in POST I have original (nasty one) URL as well as all links aren't rewritten in the page?

     
  • 07-03-2008, 5:53 PM In reply to

    • ruslany
    • Top 25 Contributor
    • Joined on 07-01-2007, 7:38 PM
    • Redmond, WA
    • Posts 651

    Re: Rewriting URL in page

    This article explains how to handle ASP.NET PostBacks when using URL rewriting. Note that when you follow the steps described in that article, make sure you use Request.ServerVariables["HTTP_X_ORIGINAL_URL"] to get the original URL before it was rewritten.

    As with regards to rewriting other links within ASP.NET page  - URL rewriter works only on inbound URL's. It does not rewrite URL's within HTTP responses.

    http://ruslany.net
  • 07-03-2008, 6:13 PM In reply to

    Re: Rewriting URL in page

    I know hot to do that. But initialy I thought, that it is integrated in the pipeline and rewrites url both ways as worst part is usualy to make friendly-url's in the code and generate proper links.
Page 1 of 1 (3 items)
Microsoft Communities