Changing Permalinks in Wordpress Doesn’t Have to be Scary

by Scott Jangro on 01 May 2009

For a website owner who knows anything about search engine optimization, one of the scariest things in the world is changing the URL structure. Not only do you need to make sure the pages work on the new URLS, bu you have to make sure that all of your old urls properly redirect to the new ones.

One mistake can cost you all existing incoming links and any search engine rankings. Not something to be taken lightly.

But I took the leap today here on Jangro.com and here’s how and why I did it.

Way back when I set up this blog, I chose poorly when setting up my permalink structure. My old url format was:

/a/%year%/%monthnum%/%day%/%postname%/

I don’t even remember why I put that ‘a’ in there at the beginning. I guess maybe I shortened the wordpress example of having /archive/ at the beginning. I’ve dreaded this decision for years now as I wanted to have a cleaner structure.

Today I switched to a simpler, more keyword rich, structure:

/%category%/%postname%/

and I hope with some good category names and post titles, I’ll get some improved traffic to the pages on which I look for natural search rankings.

For example, this URL

http://www.jangro.com/a/2006/08/03/how-to-change-your-samsung-dlp-lamp-in-5-minutes/

is now

http://www.jangro.com/electronics/dlp-tv/how-to-change-your-samsung-dlp-lamp-in-5-minutes/

When switching to a category/postname based permalink structure, you need to be careful of a few things. First, make sure all your posts are categorized. And second, make sure if your posts are in multiple categories, the one you want is lower in the sort order of their IDs. The latter can be difficult, so it may be easier to just put posts in a single category. I went through 30 pages of posts to clean this up.

Also, before changing the permalink format, I made sure I had the redirects in place. This is very easy with a plugin called Dean’s Permalinks Migration. I’m not sure exactly how it works, but I do know that wordpress posts have their permalink stored in them. So this plugin must detect a page not found, then go looking for the old permalink in the post table.

I also tested it in conjunction with the very popular “Redirections” plugin and it seems to be working great.

I’m optimistic that with some good 301 redirects in place this change will have only positive effects.

  • Very useful post for people. Thanks for this.
  • I am from Denver Website Designs and I want to know if this can be done with the blogger blogs or not? If its possible in blogger as well, I would like to make changes in the blog I have on blogspot/blogger...
  • I have always been a huge fan of %postname%.html.
    Google seems to like it too!

    If you do not follow your categories or they are not meaningful (have keywords) to your site, do not include them in the url. They can hurt you more than help. Plus, they make the URL longer.
  • I don't know... I'm still frightened.

    Do I take the leap? Do I continue with the /archive/%year%/%monthnum%/%day%/%postname%/ format?

    I just can't decide.

    thanks for the useful information though!
  • I am also worried about changing the URL structure.
    We really have to make sure that the old URl redirects the
    new...
  • Very useful post for people. Changing permalinks to more seo friendly ones is very lucrative. I can tell you as an affiliate marketer I've made very good money just off seo traffic, and a big part of that is having the right permalink.

    Super Affiliate
    Zero Friction Marketing
  • awesome post..Thanks a lot jangro
    Internet Games
  • You have a great blog here and it is Nice to read some well written posts that have some relevancy...keep up the good work ;)
  • Salman
    Superb post Keep it up

    Regards
    salman
    www.tips4blogging.co.cc for blogging tips and hacks
  • OHH Every now and again I find a web site that is a real source of useful information and content. This is one of those. A rare beast indeed. Keep up the good work. Kind regards
blog comments powered by Disqus