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

A brief history of human dignity

What is human dignity? Here's a primer, told through 200 years of great essays, lectures, and novels.

Credit: Benjavisa Ruangvaree / AdobeStock
Sponsored by the Institute for Humane Studies
  • Human dignity means that each of our lives have an unimpeachable value simply because we are human, and therefore we are deserving of a baseline level of respect.
  • That baseline requires more than the absence of violence, discrimination, and authoritarianism. It means giving individuals the freedom to pursue their own happiness and purpose.
  • We look at incredible writings from the last 200 years that illustrate the push for human dignity in regards to slavery, equality, communism, free speech and education.
Keep reading Show less

Astrophysicists: Gamma-ray jets exceed the speed of light

Scientists find that bursts of gamma rays may exceed the speed of light and cause time-reversibility.

An artist's drawing of a particle jet emanating from a black hole at the center of a blazar.

Credit: DESY, Science Communication Lab (used with permission by Astronomy Picture of the Day, which is co-managed by Robert Nemiroff at Michigan Tech).
Surprising Science
  • Astrophysicists propose that gamma-ray bursts may exceed the speed of light.
  • The superluminal jets may also be responsible for time-reversibility.
  • The finding doesn't go against Einstein's theory because this effect happens in the jet medium not a vacuum.
Keep reading Show less

Is free will an illusion?

Philosophers have been asking the question for hundreds of years. Now neuroscientists are joining the quest to find out.

Sponsored by John Templeton Foundation
  • The debate over whether or not humans have free will is centuries old and ongoing. While studies have confirmed that our brains perform many tasks without conscious effort, there remains the question of how much we control and when it matters.
  • According to Dr. Uri Maoz, it comes down to what your definition of free will is and to learning more about how we make decisions versus when it is ok for our brain to subconsciously control our actions and movements.
  • "If we understand the interplay between conscious and unconscious," says Maoz, "it might help us realize what we can control and what we can't."

We’ve mapped a million previously undiscovered galaxies beyond the Milky Way. Take the virtual tour here.

See the most detailed survey of the southern sky ever carried out using radio waves.

Photo by Štefan Štefančík on Unsplash
Surprising Science

Astronomers have mapped about a million previously undiscovered galaxies beyond the Milky Way, in the most detailed survey of the southern sky ever carried out using radio waves.

Keep reading Show less
Surprising Science

New data reveals Earth closer to a black hole and is moving 16,000 mph faster

A new study shows our planet is much closer to the supermassive black hole at the galaxy's center than previously estimated.

Scroll down to load more…
Quantcast