Hello (again), World!

In case you haven’t noticed we have a new domain! While our previous address was pretty neat it confused a lot of people so hopefully this new, simpler one would make life easier for everyone.

There are a lot of articles and a variety of methods to do this, here is what I did to move our old blog into its shiny new domain.

Moving WordPress to a New Domain

truck

Photo: (cc) Jack Satta / Flickr

  • Before you start, backup your files and database! Moving files is a relatively safe operation but there will be some SQL trickery going on so a database backup is a must.
  • Log in to admin panel and go to Settings -> General
  • Change the WordPress address and Site address to point to your new domain. After you save these changes you probably will get a 404 as we haven’t moved the files yet so don’t panic.
  • Move all your files to the new document root.
  • Log in to your admin panel at the new address: http://<new_domain>/wp-admin
  • Because your URL is pretty much hardcoded everywhere in the WordPress database you need to do replace those instances with your new one. To do that install the Search and Replace plugin and do something along the lines of this:
  • ???
  • PROFIT!

That’s pretty much it as far as moving WordPress goes. To preserve existing links to the old address I’ve placed the following .htaccess file in the old vhost’s docroot. It should permanently redirect (301) all the links to the new domain.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^.*canthack\.sdfsdfs\.com$ [NC]
RewriteRule ^(.*)$ http://canthack.org/$1 [R=301,L]

That’s all folks, do let us know if you spot anything out of the ordinary.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>