
The following is a Guest Blog Post written by Lovedeep Wadhwa who is a technology analyst and gives you different blogging tips and Internet related news at his blog O seguinte é um Guest Post escrito por Blog Lovedeep Wadhwa que é um analista de tecnologia e dá dicas de blogs diferentes e Internet notícias relacionadas em seu blog Freakitude Freakitude . . Please visit his blog for further articles on blogging and technology. Por favor, visite o seu blog de artigos sobre os blogs e tecnologia.
Wordpress Duplicate Content Bug Wordpress conteúdo duplicado Bug
Greg Mulhauser Greg Mulhauser brought into my attention a trazido a minha atenção uma Duplicate Content Vulnerability Duplicate Content Vulnerabilidade present in Wordpress and Movable type. presentes no Wordpress e Movable Type.
If you are a Wordpress user using permalinks on your blog then you must notice that the content of your posts is accessible from infinite number of different urls. Se você é um usuário utilizando Wordpress permalinks em seu blog, então você deve perceber que o conteúdo de suas mensagens é acessível a partir do número infinito de urls diferentes. You just have to append a sequence of extra digits to the end of a post's URL. Você só tem a acrescentar uma seqüência de dígitos extras ao final do URL de um post.
For Example take a look at this Por exemplo, dê uma olhada neste latest post últimas Mensagens from Matt Cutt's Blog. Blog de Matt Cutt's.
The same post is also available on these urls: O cargo também é acessível em urls:
When we try to access the post from these urls. Quando tentamos acessar o post destas urls. Wordpress doesn't return a 301 redirect or a 404 error but simply makes the post content available on these url. Wordpress não retornar um redirecionamento 301 ou um erro 404, mas simplesmente faz o conteúdo do post acessível em url.
Fix The Duplicate Content Bug Fix The Bug Duplicate Content
If you are on a self hosted Wordpress blog, you can fix the vulnerability by placing the following rules in your htaccess file. Se você estiver em uma auto-hospedado Wordpress blog, você pode corrigir a vulnerabilidade, colocando as seguintes regras no seu arquivo htaccess.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !.*(/page/[0-9]*/?)$
RewriteCond %{REQUEST_URI} !^/200[0-9]/?$
RewriteCond %{REQUEST_URI} !^/200[0-9]/[01][0-9]/?$
RewriteCond %{REQUEST_URI} !^/200[0-9]/[01][0-9]/[0-3][0-9]/?$
RewriteRule (.*)(/[0-9]+/?)$ $1/ [R=301,L]
</IfModule>
If someone tries to access the post from these urls will get a SEO friendly redirect to the original post. Se alguém tentar acessar o post destas urls receberá um redirecionamento SEO amigável para o post original.
If you are using www preference on your blog, there are some special precautions to take to avoid a double redirect. Se você estiver usando preferência www em seu blog, há algumas precauções especiais a tomar para evitar um redirecionamento duplo.
I prefer you Eu prefiro você read this post leia este post to know more. para saber mais. The post also gives info about fixing this duplicate content issue for Movable Type blogs and Wordpress MU blogs. O cargo também dá informações sobre como corrigir este problema de conteúdo duplicado para blogs Movable Type e blogs Wordpress MU.
















