After upgrading the deFusion theme from version 0.8.6 to 0.9 the embedded gallery looked all wrong (white frames around all images). To fix it, I had to remove the bits below:
To get the URL rewriting working in WP I had to edit the apache config and change AllowOverride None to AllowOverride FileInfo. I then got the URLs working properly, but Apache didn’t seem to like it at all. I had lots of instances spawning constantly and bringing the server to a grinding halt (a load of 30 is quite a pain).