Redirections in WordPress [en]

When I moved the Going Solo site away from (which did its job well, btw) so that I could jiggle it around and make the Lausanne and Leeds events into separate sites, I ended up with a whole bunch of URLs like which actually referred to the Lausanne event, and needed to point to

If you’ve been reading me for a while, you probably know that I’m not shy to go and fiddle around with my .htaccess file, but I’m also getting increasingly lazy as the years go by. So, here are two WordPress plugins (well, one isn’t strictly a plugin, but let’s not get tangled up in semantics) which can come in handy:

  • Redirection plugin: use this when you just need a 301/302 (prefer the latter) redirect/move — if you head to, you’ll see it at work. It has a handy interface to let you manage all your redirects, and also does 404 logging for you. I’ve discovered (and fixed) quite a few broken links since I installed it.
  • “Redirect to” page template (thanks, Mark): this is actually a page template which does nothing but redirect somewhere else. I use it on the main Going Solo site to create navigation tabs to Lausanne and Leeds which redirect to the other sites. Create a page with the right title, select “Redirect” as the page template, and add a custom field named “redirect” with the destination URL as value.

Have fun!

6 thoughts on “Redirections in WordPress [en]

  1. Why would you prefer a 302 ? It is not taken in account by Google, when using a 301 it will index your new page …

  2. I think you’re right… I’m a bit confused, I remembered seeing somewhere to use 302 instead of 301, which surprised me, but the explanation (now forgotten) seemed solid, so I filed the information away in my memory. When writing this post I’ve been incapable of laying my hands on my initial source. My research seems to point, as you indicate, to using 301 instead of 302.

    Extra information, anybody?

  3. 301 is a ‘permanent redirect’ and 302 is temporary. When google sees a 301 it knows it should forget the old URL and index the new one. When it sees a 302 it assumes the content will return to the old one and not index the new one as comprehensively.
    I’d always go for a 301.

  4. And many 302 are also considered with suspicion by Google, as it was a technic mainly used in “black hat” redirections

Leave a Reply

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