Host Unlimited Web Sites for Only $10 per Month!
Powered by MaxBlogPress  

 

Wordpress Hack #12: Changing Permalink Structure Seamlessly | JTPRATT's Blogging Mistakes
JTPratt's Blogging Mistakes





Home » Wordpress Hack #12: Changing Permalink Structure Seamlessly


 
 
 

Posted in:

blog-seo category image blog-setup category image wordpress category image wordpress-plugins category image
947 views


Ever wanted to change your Wordpress permalink structure but were afraid of 404 errors and SEO problems? I have a Wordpress Hack to fix all your problems right here!

This is installment #12 of 30 Wordpress Hacks in 30 Days!

This Wordpress hack is one that I planned on writing write after the last one about rotating and recycling posts out of your archives and on to your home page. Mainly because there is one thing I didn’t address before, and that’s you permalink structure. In Wordpress your “permalink” structure is your URL. By traditional default Wordpress blogs have a day, month, year structure to the URL like this:

www.site.com/05/01/2008/my-new-post

In your Wordpress dashboard in either settings (WP 2.5) or options (before WP 2.5) -> “Permalinks” you have the ability to change the structure to whatever you want. In the beginning (because they don’t know any better) most people don’t and leave the date default. Even Matt Cutts says don’t use post dates in URL’s. Why not?

Wordpress Hack #10 should have been a prime example - if you’re going to be recycling your old posts to the home page, it’s going to change the published date to the current day - right? Well, it won’t change the permalink (URL) - and it will still reflect the old date. You could change the permalink structure manually in your dashboard, but that would just create new URL’s for every single post (removing the date portion), so every single bookmark and every single search engine listing you ever had will now be an “Error 404″ page. Ouch!

Over time if you write new posts every day or every week you probably aren’t going to want the post dates to matter as much, since new readers will be coming on board all the time. In addition - maybe you’ll want to move out of Wordpress to another blogging platform someday that doesn’t have a date based post convention. If you’re in the same boat I was, you are now in quite the predicament - what to do, what to do?? Once again, enter a lifesaver Wordpress plugin “Dean’s Permalink Migration!” It’s very simple to use, and will solve all your permalink problems.

First install and enable the plugin. Then in options or settings -> “PermalinksMigration” in your Wordpress dashboard you’ll see a simple text field for only one option:

permalinks migration options

All you have to do is enter your OLD permalinks structure in that field. For most of you that’s going to be:

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

What I did was open up two tabs in my browser, both with my WP dashboard open. In one tab I had settings -> Permalinks and the other settings -> “PermalinksMigration”. I just copied and pasted my “permalinks” structure to “permalinksMigration”. Then in “permalinks” I changed the structure from this:

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

to this:

/%postname%/

Then I click “update” to save each tab, one immediately after the other. To recap- what I’ve done here is removed the dates from my permalink (URL) structure, and the “Dean’s Permalink Migration” knows what my “old” structure was, and it will automatically redirect each and every page using old date based structure to the new page. You won’t lose any hits from bookmarks or search engines at all, and all of your URL’s will be much cleaner and shorter from now on.

The ONLY drawback I could think of was, this plugin only works ONE TIME. Since it only has one field for previous permalink structure to redirect - it can only redirect the last change you made. Hint to the plugin auther, you could hack this plugin to allow for multiple changes, and adding the ability to do the same for category permalinks would be a boon too!

Now I can just hear somebody screaming from the back of the room “what about my pagerank, what about my pagerank!”. In effect, to search engines, indexers, and crawlers this should be the same as a 301 permanent redirect. If you had pagerank assigned to any of your individual posts, it should transfer to the new URL over time - typically from a few weeks to a few months depending on google’s update schedule. I personally really don’t worry about pagerank anymore at all - you probably shouldn’t either.

I hope that this hack helped you as much as it helped me once found it. If you have any comments to make this post better, or question - please comment now!


Tags: ,

6 Responses to “Wordpress Hack #12: Changing Permalink Structure Seamlessly”

  1. Make Money Online Blogging Has the following to say...

    Nice hack, but as long as you are familiar with wordpress, it shouldn’t be an issue. Either that or for lazy people.

    Shudogg Dot Com - Make Money Online Blogging

    Make Money Online Bloggings last blog post..Adsense Secrets Volume 4

  2. admin Has the following to say...

    it doesn’t matter how familiar you are with Wordpress, if you change your Wordpress permalinks without this plugin you screw up all your search listings and anyone who clicks on one or uses a bookmark with get a 404 error. There is no convention in Wordpress to accomodate for changing permalink structure and redirecting the old URL’s to the new structure. It has nothing to do with being lazy.

    If you were familiar with Wordpress, you’d know that when you make a comment, you don’t have to include a link back to your site in the comment, because you automatically get one at the top of your comment. Since I have CommentLuv installed you even get a link back to your last post in your RSS feed!

  3. Acupuncture Has the following to say...

    I’m happy I learned about permalinks before starting any WordPress sites!!!!

    I dead a ton of reading on it. There are all kinds of opinions. I ended with domain/%postname%/ only. For the very reasons JT talks about. I didn’t want to end up having to redirect everything at some future point. The one knock I heard about this permalink structure is, it slows down the database?!?!?! I have no idea if that is true. The person stated it on a forum and insited that an ID must be put with it. Well, after viewing tons of WordPress sites that rank well I noticed they didn’t bother with the ID. . . maybe I’ll end up with a slow database. . . don’t know but I would think this issue would have been brought up to the WP programmers.

    Charles

  4. DR Has the following to say...

    Quick question: When I change the permalink structure on my Wordpress 2.5 blog to /%category%/%postname%/, the old posts’ url doesn’t change. The links seem to all work, but the url stays the same. What am I missing?

    DRs last blog post..Make Money Blogging–Setting Up a WordPress Blog in 3 Easy Steps

  5. admin Has the following to say...

    @DR - I’m not sure what you mean. You changed your permalink structure and the URL’s stayed the same - have you enabled the permalink migration plugin?

  6. How To: Making Your Old WordPress Posts New Again Has the following to say...

    [...] your posts doesn’t change when the old posts are “shifted” to the home page. Read How to change permalink structure seamlessly if that situation applies to you. Want automatic updates? Subscribe to our RSS feed or Get [...]

Question or Comment?? Spill it Now...

Jumping for Joy over comments!

We Reward Comments!


We dofollow links, and get your latest blog post as a byline under every new comment from the "CommentLuv" plugin! Top commenters for every month are listed on every page of this site in a sidebar widget linked back to your URL! We would like to reward you for becoming part of our community! Your comment is valuable not only to us, but also all the other readers of this blog!
 

 


Click to add smilies to your post! = =[] ^=( =(( =(| =)r =|8 =0 =)~ =00 =( =;; =)] =;;;