301 Permanent Redirection under VPS (text document)

Source: Internet
Author: User
Tags website ip

today I want to do a cloud host windows2003 system IIS 301 Permanent redirection, because in the internship process customers will often ask to do URL redirection, write down this article and share with you, I will wangwenxi.com this domain name redirect to Baidu search box .

First, I built the Discuz forum under IIS, the domain name is wangwenxi.com

650) this.width=650; "title=" Set up a good forum. png "src=" http://s3.51cto.com/wyfs02/M00/71/7C/ Wkiol1xsfnugbujlaaewx0gwiaa096.jpg "alt=" Wkiol1xsfnugbujlaaewx0gwiaa096.jpg "/>

1 Open the Web Site Manager on IIS, then click on the Website right button to create a new website, the description does not matter

650) this.width=650; "Title=" opens the site new. png "src=" http://s3.51cto.com/wyfs02/M00/71/7F/ Wkiom1xseuvz7x2qaabvlsdox5q810.jpg "alt=" wkiom1xseuvz7x2qaabvlsdox5q810.jpg "/>650) this.width=650;" Title= " Select the path. png "src=" http://s3.51cto.com/wyfs02/M00/71/7F/wKiom1XSE-nCiiksAAC9dHm24lg002.jpg "alt=" Wkiom1xse-nciiksaac9dhm24lg002.jpg "/>

2 website IP address, choose the assigned address on VPS, this website host header, is need to do 301 redirect domain name

650) this.width=650; "Title=" Vpsip, original domain name. png "src=" http://s3.51cto.com/wyfs02/M01/71/7C/ Wkiol1xsfvhj1vxuaad0-bpr0vw435.jpg "alt=" Wkiol1xsfvhj1vxuaad0-bpr0vw435.jpg "/>

3 Home directory path, you can point to any of the VPS in any path, feel free to create a folder on the D disk is OK

650) this.width=650; "title=" Create directory. png "src=" http://s3.51cto.com/wyfs02/M01/71/7F/ Wkiom1xse2yxydroaaei8iclcn4462.jpg "alt=" Wkiom1xse2yxydroaaei8iclcn4462.jpg "/>

4 A new website will appear on the list of our websites

5 Set permissions, default is good

650) this.width=650; "title=" permission. png "src=" http://s3.51cto.com/wyfs02/M01/71/7C/wKioL1XSFizieJLKAAC0SEnr5P4207.jpg "alt=" Wkiol1xsfiziejlkaac0senr5p4207.jpg "/>

6 Right-click on this site, select Properties, home directory, tick the resource permanently redirect and redirect to the desired address so that the redirected work is done

650) this.width=650; "title=" Enter redirection information. png "src=" http://s3.51cto.com/wyfs02/M02/71/7C/ Wkiol1xsfuogj3x5aag5peqcwqk696.jpg "alt=" Wkiol1xsfuogj3x5aag5peqcwqk696.jpg "/>

7 testing validation in the browser

650) this.width=650; "title=" Select path. png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M00/71/7C/ Wkiol1xsfwgx9uoaaac9dhm24lg713.jpg "alt=" Wkiol1xsfwgx9uoaaac9dhm24lg713.jpg "/>

650) this.width=650; "title=" reality Baidu. png "src=" http://s3.51cto.com/wyfs02/M00/71/7F/wKiom1XSFQ3Q7C8nAABRJsv_ Npi281.jpg "alt=" Wkiom1xsfq3q7c8naabrjsv_npi281.jpg "/>

8 The entire 301 redirects completed, the implementation of Wangewnxi.com point Baidu Search box.

This article is from the "Linux niche" blog, make sure to keep this source http://wangwenxi.blog.51cto.com/10480746/1685420

301 Permanent Redirection under VPS (text document)

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.