Simple URL ReWrite Step by Step

Discussion in 'Site Programming, Development and Design' started by binondo, Oct 3, 2012.

  1. Problem with URL Rewrite

    I tried to solve my own problem. But I still couldn't make it work. I am running ASP.net 3.5 with IIS 7 URL Rewrite. I set this simple rule:

    <rewrite>
    <rules>
    <rule name="Rule1" stopProcessing="true">
    <match url=".*/([_0-9a-z-]+)" />
    <conditions logicalGrouping="MatchAny">
    </conditions>
    <action type="Redirect" url="?distributor={R:1}" appendQueryString="true" />
    </rule>
    </rules>
    </rewrite>

    I only want that this url:

    http://www.mackymac.com/anthony

    will point to:
    http://www.mackymac.com/member.aspx?id=Anthony

    I really hope someone can help me. Thank you very much.
     
  2. ComputerMan

    ComputerMan Winhost Staff

    Maybe this video will help you out here: http://www.iis.net/learn/extensions/url-rewrite-module/url-rewrite-module-video-walkthrough

    You can also make a connection using IIS Manager. To learn how to connect to your IIS site please read our knowledge base article here: http://support.Winhost.com/KB/a628/using-the-microsoft-iis-70-manager.aspx

    Another thing worth mentioning.

    Your domain name: mackymac.com appears to be pointing to another web server that doesn't belong to us. It appears to be parked by your registrar.

    So if you are trying to test your URL rule and its not working. Its because the domain name isn't pointing to our web server correctly.

    Simply contact your registrar and ask them how to change your name servers to our name servers below:

    NS1.Winhost.COM
    NS2.Winhost.COM
    NS3.Winhost.COM

    Once your domain name is pointing to our web servers. You can properly test your URL Rewrite.
     
    Last edited by a moderator: Oct 14, 2015
  3. THANK YOU, THANK YOU, THANK YOU!!!
    I can't believe it is this simple.
    Thank you ComputerMan.
    And no, mackymac.com is not my domain with your servers. I only use that as an example.
     

Share This Page