Previous Next

Thread: URL Rewriting/Redirection to a WCF endpoint

Last post 07-16-2008 2:31 PM by dillon68. 0 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (1 items)

Sort Posts:

  • 07-16-2008, 2:31 PM

    • dillon68
    • Not Ranked
    • Joined on 07-16-2008, 2:20 PM
    • Posts 1

    URL Rewriting/Redirection to a WCF endpoint

    What I want to do is trivial using II7.   For example, if I wanted to obscure all references to 'myapi.svc' and tell people to use http://myhost/api/method/somedata.xyz, I would create an http module that did something like this:


    context.Request.Headers.Add("X-REWRITE-URL",context.Request.Url.AbsolutePath);
    context.RewritePath("~/myapi.svc", context.Request.Path,context.Request.QueryString.ToString(), false);
    


    But, we aren't able to use IIS 7... We're using Windows Server 2003 and XP.

    Suggestions?

    Thanks in advance...

Page 1 of 1 (1 items)
Page view counter