Q: IIS7 Redirect Rule change country alias in friendly urls At the moment I have a alias as such
http://mysite/ru/folder/pagename

and i want to redirect to
http://mysite/us/folder/pagename

So in IIS7 I was trying to use URL Rewrite
a sample url can look like
http://mysite/ru/Solutions/Education+Solutions

how would the rule for the above look like

A: The follow code should do it for you 
<system.webServer>
    <rewrite>
        <rules>
            <rule name="http://mysite/ru/folder/pagename">
                <match url="http://mysite/[a-z]{2}/(.*)" />
                <action type="Rewrite" url="http://mysite/us/{R:1}" />
            </rule>
        </rules>
    </rewrite>
</system.webServer>

This breaks down to be 


*

*[a-z]{2} Any two letter country code

*(.*) Zero or more characters

*{R:1} a back reference to the (.*) the () mark it as a group 

