Jerry Leventer

Upgrade WordPress To Version 2.3 To Fix Canonical URL And SEO Issues

February 23rd, 2008 · 2 Comments · Wordpress Issues: Installation, Upgrade, Themes, Widgets, & Plugins

When you upgrade WordPress to version 2.3, this will provide automatic settings to fix the canonical URL issues.

Canonical URL’s is not a difficult concept to understand once you look at what the SEO issues are.

If your home page is located at http://www.YourSite.com/ then Google and other search engines will index that page. However, if the search engine also finds your site at http://YourSite.com/ that will appear as a separate page, and could be filtered as duplicate content. If twenty people all link to your site with one or the other URL, that’s fine. But if ten link to one version of the URL and ten to the other, the overall SEO value of those links becomes divided. Your PageRank and your keyword rankings will suffer.

In previous versions of WordPress, before the upgrade to version 2.3, you had to enter code into your .htaccess file to achieve the desired canonicalization of your URL’s.

That code, combined with permalink structure, would look like the following:

# BEGIN WordPress
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
# – BEGIN – CANONICALIZATION
RewriteCond %{HTTP_HOST} ^jerryleventer.com [NC]
RewriteRule ^(.*)$ http://jerryleventer.com/$1 [R=301,L]
# – END –
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Needless to say, the fix provided in WordPress version 2.3 provides a much needed solution.

You can read more in this article at WordPress.org .

[tags]Wordpress, Upgrade, Canonical URL[/tags]

Tags:

2 responses so far ↓

  • 1 Jeff Starr // Feb 25, 2008 at 5:17 pm

    Thanks for the post! Users of WP 2.3+ will definitely benefit from the built-in, PHP-based canonicalization functionality, but users of previous versions may want to look into comprehensive canonicalization directly via Apache and htaccess. Even users of current versions of WordPress may benefit from handling such redirection at the server level to avoid the extra overhead required for PHP processing. Hopefully this will help your readers with WordPress. — Cheers!

  • 2 Crystal Pina // Mar 12, 2008 at 7:05 am

    Thanks, Jerry, for explaining this. I knew about the upgrade but not the reason.

Leave a Comment

Google Analytics Alternative