So I have moved my blog. Change was quite trivial. Move the application from my root domain to a subdomain. Easy. Or not?
I must say it was quite painful. I expected an easy switch, considering small amount of content, but I came across some interesting and unexpected difficulties. I was aware of some of them, others surprised me.
I don’t consider myself a blogger, just because I have a blog. Few articles here and there. That’s it. My weapon of choice is Wordpress. Was it a smart choice, or was it a choice at all? Are there many options if you are looking for solid blogging platform on standard LAMP configuration? I don’t think so. At least I haven’t found anything I would be comfortable using.
Plan A) Just move the damn thing to another directory
I know moving blogs is not an everyday routine but I don’t get why it is not as easy as that. Wordpress stores absolute links to its post and pages, including hostname, in the database. Why? Just so you will need to go straight to MySQL and search for your host and replace the string with your new host when moving elsewhere. When I am developing for Wordpress on my localhost I just export the SQL dump and then insert it to the remote server. After replacing the hostnames, of course. Usually works.
Problem occurred when I tried to redirect old links from my previous location to the subdomain. Blog started to redirect back and forth for some reason.
Plan B) Start fresh; I needed an update, so I will try that
Original version was back at its old place. I found function for exporting the content inside the admin’s Tools section. Okay, there were no media included in the single XML file but I will deal with this later. New version uploaded to the new location. Fresh install, pretty easy. Just needed to import the damn XML and then I will do something about those media files. Wait, there is no function for importing the previously exported data? Of course not! There vere several options for installing a plugin for that but I don’t have energy and time left for that!
Plan C) GOTO Plan A and figure out what went wrong there
Thankfully I havent damaged my original copy, database including. To this day I don’t have any idea why the blog (or htaccess from the main domain) was redirecting to /index.cphp but I accomplished what I wanted somehow after few more tries. Htaccess redirects needed some fixes to work properly like I wanted it to, not fighting with new homepage, but I guess I have accomplished what I wanted.
I am stucked with my old Wordpress version for now. With my unfinished template. I just can’t force myself to deal with this thing right now. At least I wrote something. I am pretty sure there are more efficient ways to do what I wanted. This thing is just not my cup of tea…








