I stupidly changed my sites URI to the non-www version and got thrown out of admin and wasn't able to get it redirected correctly via go daddy. In return I had to use the following:
//FIXME: do comment/remove these hack lines. (once the database is updated)
update_option('siteurl', 'http://your.domain.name/the/path' );
update_option('home', 'http://your.domain.name/the/path' );
This got me back into my site, but not some image paths are something like this:
Any suggestions how to remove the/path that's in the urls now?