WordPress 2.3 – Canonical URLs and “/page/1”

Posted on Monday 1st October 2007 under IT by admin

Well, the motiveAuto website is up and is based on WordPress – and because WordPress 2.3 is now on GA I thought it would be a good idea to upgrade before the launch. Big mistake; yes, it is a good idea to be on the current release, but not without  some serious integration testing.

The biggest problem arises from the tidying up of URLs used to access posts, Canonical URLs. The author of these changes Mark Jaquith blogs the background to these changes and makes a good case for them. The first problem is that www.motiveauto.com/page/1 is no longer a valid URL; this is unfortunate because this is a commonly used method of accessing the posts from a static home page (see using WordPress as a CMS). The correct (i.e. valid) URL is now www.motiveauto.com/?page=1

OK, lesson learnt, but it is a pity that it took four hours to find the cause of the problem – WordPress documentation is – shall we say – “loose”.

The next problem relates to the “share this” plugin; this encourages linking to he social bookmarking sites and also emailing a page to a friend. The CSS form doesn’t seem to work (possibly because of a new version of prototype.js) but should degrade gracefully to a web page. Unfortunately this doesn’t work if the source is a WordPress static page rather than a post. URL rewriting again? Looks like it, but I can’t quite put my finger on the cause.

Comments are closed.