You may have noticed a slight change to this site and for that I hate you, for this slight change was a shit load of work!
As I’ve mentioned before, this entire site has actually been two sites; the blog and the main site, they just looked identical. To be honest, this was partly due to a sense of not wanting to part ways from having a site that was completely controlled and designed by myself. But of course, a while ago, to make my blog fit in properly with the design of the main site I ended up create an entirely self written theme for wordpress.
Well, I got sick of having two separate sites that appeared as one and required changes done to them separately and in different ways to keep them looking the same and there really was no good reason for it, especially seeing as the blog part was the part that anyone actually looked at.
So last night I set to work copying the content from each of the pages on the main site into wordpress pages on my blog and changing the links at the top of the site to link to these new pages. Once finished I copied all the files of the blog to the main site’s hosting space and created a duplicate of the database on this server.
After all this I killed off the old blog subdomain by removing the old database and files. Now I discovered to my horror that all the images were killed off too. The new copy of the blog didn’t have relative links to the images but in fact fully urls. A quick find and replace throughout the database changed all references to the old domain name to the new one.
Now that all this was done, I had to include a 301 page redirect on the old subdomain so that all references to blog.andybarratt would permanently redirect here. This was a must as Google is filled with links to the old version. This was trickier than the standard redirect as I couldn’t just put a redirect to the new blog as if a url ended with something like “page321″ then I would have to make sure that the redirect would reflect that. Luckily Apache servers have the ability to cope with this.
So it took a while but the entire site is now moved and from now on, this site will be centred on my blog. When you go to www.andybarratt.co.uk you will land on the articles page, not a home page saying who I am. For that, just click “About” at the top and you can read about the wonderous intellectual badass (A term we at the Dundee School of Computing have learnt to use instead of the terms Geek or Nerd) that I am. Welcome, to the new www.andybarratt.co.uk.