« Previous Next »

Thread: Rewrite Rule Not Working

Last post 06-09-2009 7:48 PM by ruslany. 18 replies.

Average Rating Rate It (5)

RSS

Page 2 of 2 (19 items) < Previous 1 2

Sort Posts:

  • 06-05-2009, 2:04 AM In reply to

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

    Re: Rewrite Rule Not Working

    If redirect works then rewrite should have worked as well.

    In any case if you do not want to add new binding for every new user, you can change the binding for "Default Web Site" to use some different host header, e.g "localhost" and then configure the IIS site for mysite.com to use "*" host header binding. That way requests for any domain, other than localhost will be routed to that site.

    http://ruslany.net
  • 06-05-2009, 3:41 PM In reply to

    • ixoye
    • Not Ranked
    • Joined on 05-31-2009, 8:10 AM
    • Posts 12

    Re: Rewrite Rule Not Working

    When you say that I need to use "*" host header binding, does that mean that I have to set up *.mysite.com as a host name in IIS 7? I tried it but I got an error saying that "*" is an invalid character.

    Thank you for all your help.

    BTW, I changed my rule from "Redirect" to "Rewirte" and it did not work. It only works with "Redirect".

     

  • 06-09-2009, 5:19 PM In reply to

    • ixoye
    • Not Ranked
    • Joined on 05-31-2009, 8:10 AM
    • Posts 12

    Re: Rewrite Rule Not Working

    Hi Ruslany, I was wondering if you had a chance to review my last question? We are getting close. Thanks, again.
  • 06-09-2009, 7:48 PM In reply to

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

    Re: Rewrite Rule Not Working

    It is not possible to set up host binding such as "*.mysite.com" in IIS. When I say "*" host binding it is basically an empty host header binding.

    http://ruslany.net
Page 2 of 2 (19 items) < Previous 1 2
Microsoft Communities