IIS6 and iis7s on the entire site redirect

Source: Internet
Author: User

REDIRECT function:

Redirection (Redirect) is a way to redirect various network requests to another location in various ways. Example: Like I xx company, before using the network domain name is "www.bb.com", but later they applied to the new domain name "www.ff.com", but you will find that when you enter the previous address domain name, can still use, but he jumped to the new domain address. This is one of the post-redirect effects.

Setup steps:

IIS6 under

1, with two simple website to set up redirects, establish a simple website.

We set up the website ff and the website BB separately, and in the website directory establishes one to this is the website bb/ff the first page.

2. We will now set the website BB redirect into the website ff. Select Site bb-"Properties"

Then go to "Home directory"-select "Redirect to URL"-tick "exact URL entered above" (Can not tick) and "permanent Redirection of resources" Fill in the redirected address and at the end add "$S $q" (Can not add), OK

Now let's test it. We select the browser to open the BB website.

Pop up the website ff. Success.

IIS7 under:

Operation Steps

1, we create a new site under IIS test, in the directory to establish a simple first content is this is the site test.

We are now building the website we created to redirect to Baidu on the look.

Tick "Redirect request to target" to enter the Baidu address and add "$S $q" (Can not add), tick "Redirect all requests to the exact target" and select "Permanent (301)". Click on the app on the right.

Then we enter my website in the browser, he will automatically jump to Baidu home page. Successful setup completed.

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.