Last night I upgraded my blog CMS to WordPress 2.7. It should have been simple; it should have taken less than five minutes. I won’t bore you with the details. The problem was that an
index.php file wasn’t replaced by the FTP client which completely broke the site.
As a result of the frustrations and troubleshooting I decided to go ahead and move the root to a different folder on the server. It had been in /brent/wp_blog which was superfluous: nothing else was in /brent.
Moving the files was a simple drag and drop in the FTP client. The drawback was that it broke pictures and links looking for ‘wp_blog/’ in 228 posts. I needed a search and replace or I would be doing it manually all day.
UPDATE wp_posts SET post_content = REPLACE ( post_content, 'wp_blog/', '');
In 0.0158 seconds 196 posts were updated. Pretty cool, eh? No more broken internal links.
Unfortunately, all the links to The Rhetoric content across the interweebs are now broken, but that shouldn’t be many. The upside is that the document tree is cleaner and more simple.
Perhaps now I should run queries to update style selectors so I don’t have to keep hanging on to legacy declarations. Hmmmmm.