Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
Here said that the 404 error is not the site generated 404, but because the chain in the presence of the wrong URL to the site so that the spider crawl error, generated 404 corresponding code. What we are going to do is turn these 404 pages 301 to the normal accessible pages so that the weights can be delivered normally.
When we create high quality content, we always encounter the situation of collecting or reproducing without leaving the copyright information. More abhorrent is that some collected or reproduced the site, in order to prevent the weight of their own site outflow, in the normal URL random if some letters and numbers, resulting in spiders in the site along the link to crawl, generated 404 corresponding. We can see from the following figure:
This 404 error is caused by the error of the URL in the domain linked to your site's Web page. After reviewing a series of 404 prompts in Webmaster tool, we can determine that the URL is not caused by writing errors, but by intentionally generating interference letters or numbers from the opposing site.
In this situation, we can take measures to:
1, such as Baidu and Google reported (bad effect, while damaging the RP)
2, pretending not to see, nothing happened (mood will be affected)
3, reasonable use of technology, to get back to their own things (is also the content of this article)
301 redirect 404 is an explanation of the principle of the outer chain
What we need here is 301 redirects. SEO people know that 301 is the meaning of permanent redirection, at the same time you can pass the weight of the old URL to the new URL.
Here, we can treat a page with 404 errors as an old URL and a page that exists on the site as a new URL. Take the URL in the image above as an example:
Will maliciously point to a URL that does not have a page (404 error):
Http://www.xxxxx.com/rich-snippets.htmlGFQ
By 301, point to the URL that originally existed on the site:
Http://www.xxxx.com/rich-snippets.html
In this way, the spider will be redirected to the correct URL page after accessing the wrong URL of the other site (the URL of the suffix GFQ in the example above). So as to help us to restore the role of weight transfer.
301 redirect 404 for the outer chain of the specific operation
Here we take the Apache server website as an example, through mod_rewrite to do URL rewrite and turn.
1, first of all, we look at the site root of the existence of a. htaccess file, if the pseudo static, then the file already exists (also does not exclude the httpd.conf to implement pseudo static, then you need to create a new. htaccess). Write the following code in the file:
Rewriteengine on
Rewritebase/
If your blog or website is in the form of a level-one directory, you need to be aware of the rewritebase path. You can find relevant tutorials on the Internet. There is no more to be said here.
2, if the site from the outside of the 404 error is not many, only a few, then you can use the following characters to implement (for example, the error in this article):
Rewriterule ^rich-snippets.htmlgfq$ rich-snippets.html [r=301,l]
3, but often these 404 errors occur in large quantities and are added. Then we need to observe the 404 error patterns, and then through the way to achieve redirection.
As an example of the URL in this article, we see that the URL of the error-generated 404 page in the graph is typically a suffix with 3 digits and letters added:
In the unlikely past, we will all. html after all of the possible characters of the URL, all jump to. html previous URL, the code used is:
Rewriterule ^ ([\w-]+) \.html.+$ $1.html [r=301,l]
It should be noted that the URL of my personal blog post page appears in http://www.xxxxx.com/404-to-links.htm form. The reason can refer to my previous article "Wordpresss seo-new blog site optimization." But many other bloggers or Web sites have one or more directory levels above the article page. Then you can use
Rewriterule ^ Your directory name/([\w-]+) \.html.+$ $1.html [r=301,l]
Redirect in this way.
Now we are trying to access the URL link before the 404 error: Http://www.xxxxx.com/rich-snippets.htmlGFQ
Can normally access the correct URL, and should belong to our weight also through the transfer of links to our page.
This article mainly introduces is one kind of SEO idea, the implementation method also needs according to the website special situation to treat concretely.
This article by Yangfan original in Yang seo, reprint please keep the link: http://www.seoyangs.com/404-to-links.html