How to easily change the domain name for your Wordpress blog

I recently migrated my site to a new domain, and I took an interest in seeing how simply this could be done. Could I, for example, create a list of directions that accomplished everything I wanted out of the move without requiring technical skills to implement? Could I build the “wordpress migration for dummies” framework?


\n

I was able to accomplish this goal through a little research and experimenting, and as such I’d like to republish my findings here in case it might be helpful to you someday (hi random Google readers from the future!).

\n

I only had a few goals for my migration:

\n
    \n
  1. Keep my current posts available at the new URL
  2. \n
  3. Automatically forward any traffic to my old URL to the new domain
  4. \n
  5. Have one canonical source for Search Engines in order to maintain good standing in Google.
  6. \n
  7. Never need to use a tool that I couldn’t explain to my grandma over the phone.
  8. \n
\n

Here’s how I was able to complete my goals:

\n

0. Export your blog content to an XML file (found under Tools>>Export). You should probably backup your database just to be safe.

\n

1. Create a new, clean install of WordPress at the new domain name.

\n

2. Go to Settings>>Privacy in the new install and set it so that Search Engines can’t find the new blog.

\n

3. Install all plugins to new blog.

\n

4. Copy all the settings from the old blog to the new blog. You do this by hand, but it generally takes less than 5-10 minutes. Make sure Permalinks get setup with the same structure.

\n

5. Goto Appearance>>Themes and select your design, customize however you set your old theme.

\n

6. Goto Tools>>Import and import the file you exported in step one. When asked whether to include files, do so.

\n

7. Goto your old blog, and download and activate the plugin, Redirection.

\n

8. In your old blog, goto Tools>>Redirection and start setting up 301 redirects for your blog. This is made infinitely easier with the use of regular expressions, which is describe on the page linked in step 7.

\n

Simply, what you want to do here is setup the source url with a simple regular expression that will find all your posts.  For me, this was /blog/(.*) then you want to check the RegEx box, and set the Target URL to a Regular expression that will pass through the original permalink URL. For me, this was http://cuethefuture.com/blog/$1 don’t forget to make sure the action is set to “redirect to URL.” Once you’ve set that, all your posts should be forwarded properly. Then just redirect the base url (i.e. redirect tylerwillis.net to cuethefuture.com) and any pages. If you have a predicatable URL structure here, you can use the regular expressions trick again.

\n

9. In your old blog, goto Settings>>Privacy and make this site invisible to Search Engines.

\n

10. In your new blog, oto Settings>>Privacy and make this site visible to Search Engines.

\n

No, the Yellowstone supervolcano is not ‘overdue’

Why mega-eruptions like the ones that covered North America in ash are the least of your worries.

Ash deposits of some of North America's largest volcanic eruptions.

Image: USGS - public domain
Strange Maps
  • The supervolcano under Yellowstone produced three massive eruptions over the past few million years.
  • Each eruption covered much of what is now the western United States in an ash layer several feet deep.
  • The last eruption was 640,000 years ago, but that doesn't mean the next eruption is overdue.
Keep reading Show less

CRISPR: Can we control it?

The potential of CRISPR technology is incredible, but the threats are too serious to ignore.

Videos
  • CRISPR (Clustered Regularly Interspaced Short Palindromic Repeats) is a revolutionary technology that gives scientists the ability to alter DNA. On the one hand, this tool could mean the elimination of certain diseases. On the other, there are concerns (both ethical and practical) about its misuse and the yet-unknown consequences of such experimentation.
  • "The technique could be misused in horrible ways," says counter-terrorism expert Richard A. Clarke. Clarke lists biological weapons as one of the potential threats, "Threats for which we don't have any known antidote." CRISPR co-inventor, biochemist Jennifer Doudna, echos the concern, recounting a nightmare involving the technology, eugenics, and a meeting with Adolf Hitler.
  • Should this kind of tool even exist? Do the positives outweigh the potential dangers? How could something like this ever be regulated, and should it be? These questions and more are considered by Doudna, Clarke, evolutionary biologist Richard Dawkins, psychologist Steven Pinker, and physician Siddhartha Mukherjee.

Smartly dressed: Researchers develop clothes that sense movement via touch

Measuring a person's movements and poses, smart clothes could be used for athletic training, rehabilitation, or health-monitoring.

Technology & Innovation

In recent years there have been exciting breakthroughs in wearable technologies, like smartwatches that can monitor your breathing and blood oxygen levels.

Keep reading Show less
Personal Growth

Do you worry too much? Stoicism can help

How imagining the worst case scenario can help calm anxiety.

Quantcast