I promised to write about making your WordPress blog look the way you want…if there was enough interest, and sure enough, there was!
This post is the first in a series called “WordPress for the Everyday Blogger.” Why the Prelude before jumping into Part 1? Because this post will deal with those who are making the transition to WordPress from another blogging platform. I myself had a heckuva time transporting my blog from Squarespace to WordPress (mostly because I had over 1,000 posts!) and wanted to document the transition for others who wanted to do the same. I also know that this post will benefit at least three blogger friends of mine — Bien Living Design, OMG I’m a Mom, and Two Wishes — who are about to, or in the process of making the transition to WordPress.
This will also probably be the longest post in my “WordPress for the Everyday Blogger” series, so please bear with me!
1. Export your old blog posts.
If you are making the switch to WP from another blogging platform, rest assured that practically every blogging platform allows you to export your posts so that you can import the entries to your new blog.
If you are not sure how to export your blog data, go check your blogging platform’s FAQs.
For Squarespace, go to Structure Editing Mode, then click on “configure this page” and scroll down to the “Data Export” section. You should end up with a text document that looks similar to this:
That was easy enough, right? Wrong! Because the file you have downloaded has the URL paths to your media (ie, all the photos you have uploaded) but not the files themselves.
The good news is that most of the time, you can easily download the files via FTP. (My favorite FTP client is Cyberduck. It is easy to use and the yellow duck icon looks mighty cute in my dock. However, its Windows version is still in beta so if you’re a Windows user who prefers a more stable version, I recommend FileZilla. Not sure what FTP is? Go check out FTP for Beginners.) I suggest that you keep your media in their folders and upload them the same exact way so that you do not need to change the URL paths in your existing blog posts.
The bad news is that not all blogging platforms support FTP. This was the case with Squarespace, with whom I had been hosting my blog.
Luckily, I have a lifetime account with Squarespace so I chose to keep my old files there and just change the paths to those files (more on that later). If you choose not to do this, you will need to download all your files one-by-one. Not fun.
2. Edit your exported blog data accordingly.
You can choose to keep your old URL structure and everything will be easy-peasy. For example, my Squarespace blog was at
https://www.geekinheels.com/blog/ so I could’ve installed my new WordPress blog at that directory too.
However, I wanted my new blog’s URL structure to omit the “/blog” portion — in other words, I wanted my WordPress blog to be at my domain’s root directory.
So I performed a search and replace on the blog data file I had exported, replacing all instances of:
And because I was keeping my old photos at Squarespace, I replaced the existing URL paths to my media to the new Squarespace URL. In this case, because all my media were stored in the /storage directory, I replaced all instances of:
If you have a good text editor (I use TextWrangler), you can use the find and replace function to even get rid of additional image formatting, extra line spacing…practically anything you want! Note that TextWrangler supports Grep patterns in their “Find” function, which I found highly useful in this step. (I will not get into Grep patterns here but if you want to use it and are confused, just let me know and I will try my best to help.)
3. Upload your old blog data & files to your new blog.
I am now going to assume that you have installed WordPress (if you’re not sure how, go check out Installing WordPress). Once you are logged into the Dashboard, click on the “Tools” menu on the left and select “Import.” Follow the instructions and voilà — all your old posts should now be imported.
If you have media you need to upload, upload them to your new host using the same exact folder structure. If you do not, all your images will show up as broken links.
4. Redirect your old blog URL to the new URL (if needed).
Caution: be very, very careful when doing this step!
As mentioned above, my old blog URL was
https://www.geekinheels.com/blog/ and I wanted my new blog’s URL to be rid of the “/blog/” part.
But since all my old posts begin with
https://www.geekinheels.com/blog/...., I needed to create a 301 redirect — which tells the internet that the URL has moved permanently — to have all my old URLs redirect to my new one.
To do this I had to edit my website’s .htaccess file. Many FTP clients won’t show the .htaccess file by default, so using Cyberduck, I navigated to my domain’s root directory, went to “View” in the menu and selected “Show Hidden Files.”
Even when you download the .htaccess file you may not be able to see it on your computer. So I downloaded it using the “Download As” option and saved it as 1.htaccess.
I opened the file using a text editor (such as TextWrangler) and added the following line to the bottom of the file:
redirect 301 "/blog/" https://www.geekinheels.com/
This essentially tells the internet that everytime someone tries to visit
they should be redirected to:
So for example, if you type in:
you will automatically be redirected to:
After adding the line to the 1.htaccess file I uploaded it to my root directory, and renamed it to .htaccess which replaced my old .htaccess file.
5. Change your permalink structure to match your old blog’s.
Again, this is to ensure that all the visitors who are coming to your blog through another website — including Google, since you don’t know when it will crawl your blog next — will not end up at a 404 Error (not found) page.
After logging into your WordPress Dashboard, go to “Settings” on the left menu and click on “Permalinks.” Examine your old blog’s URL structure and copy it into the “Custom Structure” field.
In my case, my old Squarespace URL structure looked like this:
Very similar to WordPress’ “Day and name” option, but the Squarespace URL has a .html at the end.
So I changed my WordPress installation’s URL structure to this:
I did not worry about the “/blog/” in the middle of the URL since I took care of that in the previous step.
Note that in the field above, you only need to type in
6. Double-check everything.
Even if you have performed multiple find and replace commands, even if you tried your best to keep all the URLs the same, it is likely that your new blog still contains some broken URLs, images that are not showing up, etc.
Broken Link Checker does exactly what its title implies. It goes through all the links in your WordPress installation (including images) and gives you a list of what is not working. Its nifty interface lets you ignore the broken link, correct it, or remove the link right from its Dashboard page.
What if you don’t want to correct a broken link, but you want to re-route it instead? What if you want to make sure that every time someone tries to go to a certain URL in your domain, they will be re-routed to another URL? That’s where the Redirection plugin comes in handy. Instead of messing with .htaccess files to create URL redirects for every broken link, this plugin lets you do that via an easy-to-use interface.
I recommend that you keep these two plugins activated even after the successful transfer of your blog. When you have as many posts as I do (and links!), there are bound to be new broken links on a regular (in my case, daily) basis.
Using the steps above, I was able to transfer my Squarespace blog (with over 1,000 posts) to WordPress in just one night. But importing your old blog is just the first step. Starting with the next part in this series, I will show you how I made my WordPress theme!