How to Change Permalink Structure in WordPress without Duplicate Content

Wednesday, October 14th, 2009

Recently we had a client who wanted to change their Permalink structure from

Old Permalink structure: /%author%/%category%/%postname%/

to:

New Permalink structure: /%author%/%category%/%postname%/%post_id%/

so that they would qualify for Google News. Apparently you need at least 3 digits in your URL in order to qualify for Google News.

I wanted to simply change the Permalink structure by going to Settings>Permalinks in WordPress. However, the problem is that Google sees 2 URLs for the same post which could cause Google to penalize you for duplicate content:

Google would see both the old and new Permalink structure for the same content:

For example, Google would see:

(old) http://example.com/Rebecca/News/MyPost/

and

(new) http://example.com/Rebecca/News/MyPost/222

So we need to make sure the old Permalink structure has a 301 redirect to the new Permalink structure.

Thankfully, after trying many plugins, we finally found and successfully implemented this plugin: Permalink Redirect WordPress Plugin

The directions on the site are very old and quite confusing.

Here’s how to use Permalink Redirect WordPress Plugin

  1. Download, Install and activate the plugin
  2. Go to Settings>Permalinks and copy down your old permalink structure
  3. While you’re in Settings>Permalinks, change the Permalink structure to your new permalink structure
  4. Go to Settings>Permalink Redirect and where it says “Old Permalink Structures”, paste in your old permalink structure

That’s it.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Canonical URLs to help Wordpress duplicate content issue

Monday, February 23rd, 2009

Fancy words aside, a canonical URL is Google’s way of identifying a “preferred” URL for your posts to avoid duplicate content. Duplicate content is generally defined as “separate web pages with substantially the same content, which may attract a penalty from search engines.”

Wordpress is often criticized for having duplicate content since new posts appear on many pages including category pages, archive pages, feeds, and trackbacks.  While this helps visitors find the content they are looking for, it confuses search engines, forcing them to “choose” which URL to serve in search results.

And so… Google (Yahoo and Microsoft too)  recently came out with a new link tag to help with the duplicate content issue which can be added to the <head> section of the duplicate content URLs.

<link rel=”canonical” href=”http://www.example.com/product.php?item=swedish-fish” />

But honestly, who can be bothered to go into the <head> for every post. Luckily, there are 2 Wordpress plugins that are here to help:

Yoast adds rel=”canonical” links to your blogs <head> section

SEO No duplicate – This simple plugin helps you easily tell the search engine bots the preferred version of a page by specifying the canonical properly within your head tag.

For more information, read the official announcement from Google.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
Premium News Themes