Changing the Structure of WordPress URLs without Losing Traffic or Google Juice

colon-slash-slashI’m on my way out the door, headed to my daughter’s first trip to Coney Island and the Circus, so I won’t go into all the reasons behind why I’m changing the structure of my URLs, let’s suffice it to say that I’ve been thinking about it for quite a while and, after quite a bit of research, it seems like the right move to make.

What change am I making? I’m merely taking the date out of my URLs. The problem is that I don’t want to lose all my outside links and Google traffic by changing my permalink structure. I already showed you how to migrate a WordPress site to an entirely new domain and redirect your URLs, this is just another quick customization along the same lines.

Old URL structure: http://jamespoling.com/2009/01/moving-your-wordpress-blog-to-a-new-domain-without-losing-your-incoming-traffic/
New URL structure: http://jamespoling.com/moving-your-wordpress-blog-to-a-new-domain-without-losing-your-incoming-traffic/

Step 1: Go into Settings > Permalink Settings and set up your custom permalink structure. It should look like this:
wp_permalink_structure

Step 2: Either create or edit your .htaccess file on your server. (You’ll need an FTP client to access and upload this file).

    1. Inside your .htaccess file add this line of code
      RedirectMatch permanent ^/[0-9]{4}/[0-9]{2}/([a-z0-9\-/]+) http://jamespoling.com/$1
  1. Upload your .htaccess file to your root blog directory
  2. That’s it! Sit back and enjoy

Image courtesy of jeffsmallwood Flickr

Moving Your WordPress Blog to a New Domain Without Losing Your Incoming Traffic

u-haul-truck-pictureAs you may have read in the previous entry I recently came back into possession of jamespoling.com.  After selling off a blog network and taking a break from blogging I had recently started blogging again at jpoling.com.  I was never 100% happy with that URL and when I was able to, the first thing I wanted to do was move everything over to jamespoling.com.

The problem with that is, that I already had some pretty good search engine traffic as well as links from other outside sources and I didn’t want to lose any of that traffic with the move.  All those incoming links and that tasty SEO I love so much, I really didn’t want to sacrifice any of that.  The good news is, you don’t have to.

Google usually frowns upon duplicate content on different sites, so I’ll have to monitor the situation and when the incoming links from jpoling.com start to slow to a trickle, I’ll more than likely go in and axe the entire domain and set up a 301 redirect to here.

Click after the jump for the step by step to moving your WordPress blog to a new home.

[Read more...]