Why do you have to do 301 redirects

Source: Internet
Author: User
Keywords What 301 redirect

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

Today, mainly to talk about the next 301 redirect problem, because some time ago found that the window site has two home page address are included in the Baidu, a with the WWW, one does not take, the problem comes, Without www. The snapshot is the latest, let me feel not very normal, because many netizens said that two home pages are included for the weight of a large impact.

For those of you who don't understand the 301 redirect concept, here's a brief introduction. Redirection is simply to redirect various network requests to another location in a variety of ways. such as: Web page redirect, you visit Amoy a return to the net domain name. What's the use of it specifically? If you need to change the Web site by the style shown in search engine results, it is recommended that you use server-side 301 redirection. This is the best way to ensure that users and search engines are directed to the correct Web page. The 301 status code indicates that a Web page has been permanently migrated to a new location. The other 301 redirection features are especially useful in the following situations:

1. You have moved your site to a new domain, and you want to complete this transformation as smoothly as possible.

2. People visit your website through different websites. For example, if you can access your home page in a variety of ways, such as www.xxx.com/, or www.xxx.com, it is a good idea to select one of the preferred (standard) destination URLs and send traffic from other URLs to the preferred URL through 301 redirects.

3. You are merging two websites, and you want to make sure that links to expired URLs are redirected to the correct pages.

The following is a collection of related code that may be useful to you.

PHP 301 Redirect

WWW.XXX.COMR ("http/1.1 moved Permanently");

www.xxx.com/");

Exit ();

301 redirects under ASP

Reswww.xxx.comus= "Moved Permanently"

RESWWW.XXX.COMR "locawww.t1tfl.com/"

Reswww.xxx.comd

ASP. NET 301 Redirect

Reswww.xxx.comus = "Moved Permanenwww.xxx.com

Reswww.xxx.com

So what's the problem when you redirect?

1. If you are ready to move the files on the server to other places, you must correctly notify the search engine crawling procedures for the following information:

-Destination Address: Where these files were moved

-Move properties: temporarily removed or permanently removed

2. For sites with multiple domain names, it is recommended that those domains that do not want to be promoted in search engines be permanently redirected with a 301 jump command.

Also under the experience of a multi-domain site master:

"I have only one site, the primary domain name is WWW.XXX.COMSS file to implement redirects."

I used the following steps:

A. Separate the domain1.com from the domain.com and make it an ordinary independent web site on the server.

B. Create a. Www.xxx.comss text file for domain1.com, and set the redirection code in the file to: Redirect www.xxx.com/www.xxx.com/the modified. www.xxx.com server. This step can also be done in the Domain name Control Panel.

C. Go to the Domain name Control Panel, release all domain names originally bound to domain.com from domain.com, and then rebind to doamin1.com. As a result, these bound domain names use domain1.com. www.t1tfl.com.

301 redirect may just be a very small problem, but imagine not to do this work, the impact on your site is not small, especially after the weight of the home page is scattered, the impact on the rankings is very large. Recently, the author of the site to build the window of the adjustment, Baidu weight quickly increased a lot of related keywords also rose several. I hope you webmaster attention. Well, today, it's not easy to write an original article every day.

Finally thank A5 for the support of our small station, thank A5 Audit team. The source of this article Amoy a return to the net, copyright, reproduced please link form to indicate the origin of the article and this declaration http://www.t1tfl.com/

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.