Mark on WordPress

WordPress puts food on my table.

Change Your WordPress Post Slugs

with 12 comments

If you’ve been using WordPress with “fancy permalinks” (/year/month/day/post-slug/) you’ve probably experienced the following problem with your post slugs (the part of the URI that is an all-lowercase dashed version of your entry’s title, like this-is-a-post-slug):

  • Write a post
  • Two days later, realize that you misspelled the title
  • Fix the title
  • Realize that the post slug is still misspelled
  • Change the post slug
  • Get e-mails from people saying the old link is broken
  • Curse loudly
  • Change the post slug back
  • Lose sleep, thinking about that misspelled post slug
  • Get e-mails from people saying the new link you temporarily created is broken
  • Curse loudly

Well, maybe not that bad, but you know what I’m talking about. There are ways around this, like by manually creating an Apache redirect for the old URI to the new URI. Ugh… holy annoying.

So now, I present to you a solution. Go install the Redirect Old Slugs plugin that I wrote. Now, you can change your slugs at will, with no broken permalinks! The plugin notices when you change the slug of a published post, and it remembers the old slug for you. Now, when someone goes to the old slug, they silently get redirected to the new slug. Even Google will find your new post. What’s more, it works with WordPress Pages too, and you can change the slug multiple times and the plugin will keep track of each of the “abandoned” slugs!

Install it and forget about it. It just works.

Works for WP 1.5.2 as well as WP 1.6 (as of this publish date).

Written by Mark Jaquith

November 3, 2005 at 11:48 pm

Posted in wordpress

12 Responses

Subscribe to comments with RSS.

  1. Thanks for this info,
    I have this problem before.

    Handry

    November 19, 2005 at 3:48 pm

  2. Nice Mark! That’s a great idea and I’m glad someone finally created it.

    Jonathan

    November 23, 2005 at 12:56 am

  3. Hello Mark!
    Great idea, many thanks for that!
    Saves a lot of time. :-)

    Eugê!

    Eugê

    December 17, 2005 at 3:32 pm

  4. Dear webmaster! Your resource is in our spam list.Please email me to astopae@yahoo.com and I remove Your resource from spambase.http://groups-beta.google.com/group/abdus/files

    Bot

    December 17, 2006 at 8:52 pm

  5. Dear Webmaster! Your resource is in our spam list.Please email to astopae@yahoo.com Your site link and we remove Your resource from spambase.Othervise Your site hase been spammed every 15 minutes.Thank You for cooperations.

    James

    December 21, 2006 at 4:51 pm

  6. Awesome tool. Just what i needed. Thanks!

    gices

    December 29, 2006 at 9:19 am

  7. [...] still manages to have crappy looking URLs even though they seemed to have added in book “slugs.” Blogging software, so far, has been the most consistent in it’s success of making [...]

  8. Hello ,your site is the best one! Thank you

    matanet

    June 11, 2007 at 3:11 pm

  9. Beat a hasty retreatg

    Lisabetta

    July 2, 2007 at 3:51 am

  10. [a] http://online-roulette-gambling.com/ [/a]

    “Best Roulette Strategy.u

  11. alesan shooi acquisitiveness councilist recoct lax monomyarian characterizable
    First National Equity, Inc.
    http://www.angelfire.com/pop/vanessa/

    Sandi Kane

    April 18, 2008 at 11:49 am

  12. how do i know if i need flood insurance…

    ingredients:reconciling Frigga sunset slob …


Leave a Reply