When I moved the Going Solo site away from WordPress.com (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 http://going-solo.net/programme
which actually referred to the Lausanne event, and needed to point to http://lausanne08.going-solo.net/programme
.
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 http://going-solo.net/programme, 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!
Similar Posts:
- Simple Technorati Tags Plugin for WordPress [en] (2005)
- New Look for CTTS: Thesis [en] (2008)
- Bunny's Language Linker: New WordPress Plugin [en] (2007)
- The hAtomisation of CTTS [en] (2006)
- Plans for Basic Bilingual [en] (2010)
- WordPress 3.0 Installed [en] (2010)
- Call to WordPress Plugin Developers [en] (2005)
- Ridding WordPress Plugins of Template Tags [en] (2007)
- Two Updated Plugins For WordPress [en] (2006)
- WPtouch iPhone Plugin Now on CTTS [en] (2010)
Why would you prefer a 302 ? It is not taken in account by Google, when using a 301 it will index your new page …
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?
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.
And many 302 are also considered with suspicion by Google, as it was a technic mainly used in “black hat” redirections