Skip to content

Vagnretur

Menu
  • About
  • Exempelsida
  • Sample Page
  • About
    • Testsida
Menu

How to move a wordpress installation easily

Posted on March 21, 2014 by Daniel

In order to move a WordPress installation, move all web files to the new location and run the following queries in the database:

UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com', 'http://www.new-domain.com');

UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');

Leave a Reply Cancel reply

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

Recent Posts

  • Notes for creating a bootable FreeBSD pxe image
  • How to migrate a linux partition to another server over ssh
  • How to move a wordpress installation easily
  • Intressant om Ipv6
  • Testmeddelande via iphone

Recent Comments

No comments to show.

Archives

  • August 2018
  • March 2014
  • December 2010
  • September 2010
  • May 2010

Categories

  • Hemsidan
  • iPhone
  • KVM
  • Linux
© 2025 Vagnretur | Powered by Superbs Personal Blog theme