IIS URL Rewrite redirect from one Domain to another

Source: Internet
Author: User

IIS URL Rewrite enables WEB administrators to create powerful rules to implement URLs that is easier for users to Remembe R and easier for search engines to find.
For more information you can read the below Url:http://www.iis.net/downloads/microsoft/url-rewrite

See the below example redirect from one Domain to another:

IIS URL Rewrite would add the Rewrite rules into Web. config

<?XML version= "1.0" encoding= "UTF-8"?><Configuration>    <system.webserver>        <rewrite>            <rules>                <Rulename= "Domain switch"stopprocessing= "true">                    <MatchURL=".*" />                    <conditions>                        <Addinput= "{http_host}"pattern= "(www.)? Site1.com " />                    </conditions>                    <Actiontype= "Redirect"URL= "http://www.site2.nl/{r:0}" />                </Rule>            </rules>        </rewrite>    </system.webserver></Configuration>

IIS URL Rewrite redirect from one Domain to another

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.