Professional weblog hosting has a lot of advantages compared to free hosting options or really flexible self-hosted solutions like Wordpress.
The most important one of them all - it is cheaper. Much cheaper. That’s because you do not have to waste your precious time installing and configuring plugins, tweaking design or doing back ups.
So recently (as motivated by a couple of hardware failures at my previous hoster) I’ve decided to give up on the Wordpress and move everything to the SquareSpace.com.
Here are some problems that I’ve encountered along the way and solutions to them.
A. Migrate Wordpress to Squarespace
The problems are:
- tag archives are not supported by SquareSpace
- importing resources (images, files etc) is not supported by the XML format
- links break
- Export Wordpress blog to XML Format
- If you plan to do automated XML cleanup - fix ‘excerpt’ namespace (add namespace attribute - xmlns:excerpt=”http://purl.org/rss/1.0/modules/content/”)
- Search and replace all wp-content/uploads to storage/uploads (that’s where Squarespace will store our files)
Rename all tags into categories (SS does not have tag archives):
- category domain=”tag” -> category domain=”category”
- rename tag declarations into category declarations (things like [wp:category][wp:category_nicename])
Import the blog.
- Download the existing contents of your wp-content/uploads and archive every folder into zip
- Create uploads folder in the File Storage of Square Space and upload all the zip files (do not forget to click on “Decompress after upload)
- Delete old “Journal” Page
- Rename “Imported Data” into Journal and update the settings as needed
- Enable new Journal page, make it the first one and “Set as default”
- Redirect your domain to your blog.
B. Deal with forced HTML conversion
For blogs with the large number of non-HTML posts it is unfeasible to import or fix every post manually.
And unfortunately the SquareSpace support claims that there is no other way except importing pre-converted HTML.
Well… here is my solution that could:
- Add Arhives page to you blog with the list of all posts
- Save HTML as Source and get the list of post URLs via the regex
- Launch VS 2008 and create Windows Forms application
- Drop the browser control window on top
Code in the sequence:
- Navigate to your Squarespace blog
- Invoke “Universal SquareSpace Login” (the bookmarklet is available in the goodies section)
Repeat for every link in your list:
- Navigate to it.
- Parse the HTML with a simple regex to find out the post ID
- Invoke the editor in a separate form (just open the url for Editor IFrame URL)
- Get the contents of “body” element and remove these html line breaks and other stuff.
- Post the containing form
Sit back and watch the automation
C. Fixing Broken Links
No matter what you do, there still be broken links, since different blogs have different permalink structures.
There are two types of broken links, that matter:
Links between the posts:
- Just use regex+auto replace to match the urls of posts between each other (using the list of posts that you got from the Archives page)
- Replace all the unmatched inner urls with the search queries
- determine the most popular incoming links by looking at your Google Analytics report (you do have it, do not you?)
- Manually add url mappings in the SquareSpace control panel so that all popular incoming requests will be redirected to the new URLs.
D. Add syntax highlighting to SquareSpace
Squarespace does not have it. Period.
- Download Prettify script (it powers Google Code, by the way)
- Add HTML Widget to your sidebar with this script (update the file references to prettyfy.js and prettify.css as needed)
Now any block of code within [pre][code] will be highlighted by the script. Markdown code blocks are wrapped with these tags automatically.
E. Online CVV-only payments are not supported
Unfortunately these payments are widely used in Russia (Master and Visa). Support has suggested to ask the bank to let these transactions through. Well it could’ve worked if I were in Russia at the moment. Here’s another solution that worked for me:
- Upload USD to MoneyBookers (it supports all credit cards)
- Order a virtual Visa Card from Card444
- Use this credit card for the SquareSpace payment
Was this migration worth it?
- Existing weblog has been located on masterhost shared hosting plan that had extended round-trip to the major audience, some noticeable downtimes and they’ve lost a couple of my files during the last issue
- Handling your own Wordpress blog is fun and flexible, but is totally inefficient in the terms of TOC. Additionally the need to remember all the details about hosting, DNS, SEO, custom theme modifications etc.
- I have friendly support, reliable software and nice UI.
So the answer, so far, is yes.