Domain address default jump to www (301 redirect)

Source: Internet
Author: User
Tags http redirect

Before you do this, you must first be sure to have a domain name ....

Then the domain name points to an external network host address, the normal access to the site

IIS7 after the version of the spectators continue to look down, IIS7 before the version, please stop, I did not do the previous version

First confirm that the server's IIS is configured with the "HTTP redirection" feature, I am a novice, so IIS all the features I have installed, haha

Open IIS, build two website, we temporarily named them: ABC, XYZ

ABC website Binding abc.com

XYZ Site Binding www.abc.com

Note: Two sites do not point to the same folder, such as abc.com, you can specify an empty directory is also possible

Click on the ABC website and you can find "HTTP redirect" on the right.

When you click inside, set the destination address you want to redirect to:

Remember to choose 301,301 is the state, not the dorm number, nor the room number

Domain address default jump to www (301 redirect)

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.