WordPress SEO cont…  

Today, I updated the .htaccess file to redirect everything to the same style URLs. For example, there were instances of paths ending in a “/” and some where they were not. This should tighten up the links that Google is picking up to where there aren’t any duplicates. Here’s the basic code:

Options +Indexes
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^myblog\.com
RewriteRule ^(.*)$ http://www.myblog.com/$1 [R=permanent,L]

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://www.myblog.com/$1/ [L,R=301]

Then, I used the DDSiteMapGen plugin to create the sitemap. Actually, the plugin was already installed. They just didn’t have the link to the actual sitemap anywhere in the site. This should help the spiders pick up any URLs that they may have missed.

I’ll keep you posted!

(UPDATE: forgot to mention… thanks to¬†http://www.jimwestergren.com/wordpress-users-sharpen-your-urls-with-google/ for the code)

This entry was posted in SEO and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>