Jon Simpson’s Weblog

My personal space for ideas & information.

Archive for February, 2006


301 redirect non-www to www

Sunday, February 19th, 2006

In continuation of the theme ‘using my blog as a personal notepad’, here’s a small snippet for use in an Apache .htaccess file to ensure that visitors/incoming links not using the www. form of your site’s domain are redirected correctly.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.co\.uk
RewriteRule (.*) http://www.example.co.uk/$1 [R=301,L]

Make sure to escape periods in the RewriteCond line with [...]

Wordpress with Subversion: Upgrades

Monday, February 6th, 2006

Did I mention I really like maintaining Wordpress installations with subversion already?
svn switch http://svn.automattic.com/wordpress/tags/2.0.1
One command to perform a no-pain, no-hassle update to Wordpress 2.0.1. Great!