Binding multiple domain names will not distract you from the small code of the weight of the site

Source: Internet
Author: User
Keywords Tips

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Do stationmaster, unavoidably encounter the problem that the website domain name changes. In this way we need to find ways to transfer the weight of the old domain name to the new domain. Now the accepted method is to do 301 directional. I personally also support the use of this method. For the Linux system, just upload a htaccess change can be easily redirected.

However, for Win's host, how to want to do 301 directional, but not easy thing. We often need to do this to get that, but also contact the host, but also find a lot of modules. In the end, can not be made not necessarily. In view of this situation, the younger brother now share my little tips. is actually very simple.

Code: <base href= "http://www.46164.cn/"/>

Locate your site template file and add the code to the header section. (Pay attention to the URL you want to use, special reminders, after the URL has to take the "/" slash ~) Single explanation of this principle, this code means that the definition of your site All URLs are based on this code in the URL specified in the beginning.

According to an example, my site, the original domain name is www.tou1anzhu.cn but now I want to give him www.46164.cn if all do 301 directional, it is a very large project. So I tied the new domain to the Web site and added this code to the header section.

And then regenerate it. After the static, we will find that when you click a connection in the old domain page, the URL that he opens is already the beginning of my new domain name. (A.com/123/index.html into b.cn/123/index.html)

I have used this method test, the morning 9 more this piece of code plus the whole station, Baidu only in the day when more than 4 o'clock in the afternoon, the new domain name has been included in the page of more than 9 pages. Then Google, a collection of as many as 129. And Google impressively prompts "6 hours ago". That is, I just put on less than one hours, Google included. So, prove that this method is very successful. We can draw on it.

Half a month did not share things with you, this time even is a small ceremony half a month. has also been to share more of the SEO I found above the tips.

The original source: Lazy Pig personal website www.46164.cn and webmaster Net reprint, please keep the copyright in the form of connection.

Related Article

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.