This link has been bookmarked by 18 people . It was first bookmarked on 20 Mar 2007, by someone privately.
-
28 Nov 09
David SalahiHow to change a WordPress Site URL (domain)
"define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com'); " -
17 Nov 09
-
05 Nov 09
-
23 Jul 09
-
17 Jun 09
-
09 Jun 09
-
08 Apr 09
-
1. FTP to the site, and get a copy of the active theme's functions.php file. You're going to edit it in a simple text editor (like notepad) and upload it back to the site.
2. Add these two lines to the file, immediately after the initial "<?php" line.
update_option('siteurl','http://example.com/blog');
update_option('home','http://example.com/blog'); -
Domain Name Change
- 3 more annotations...
-
-
Look for the field that holds your post "guid". It is usually called guid, but it may have been changed. Write it down.
-
Images link: image links are stored in "post_content" in the wp_posts table. You can use the similar code above to update image links.
-
- wp_options: Besides the "siteurl" and "home" items mentioned above, there are other option_value which also need revision, such as "upload path", and some plugin items (depends on what you've installed, such as widgets, stats, DMSGuestbook, sitemap, etc.)
- Do a FULL database search for any items left. MAKE SURE you know what you are changing. and go through each item for possible improper replacement.
- wp_options: Besides the "siteurl" and "home" items mentioned above, there are other option_value which also need revision, such as "upload path", and some plugin items (depends on what you've installed, such as widgets, stats, DMSGuestbook, sitemap, etc.)
-
-
-
03 Apr 09
-
access the database
-
5. Repeat the above steps, but remove those lines. IMPORTANT: Do NOT leave those lines in there. Remove them immediately after the site is up and running again.
-
-
19 Oct 08
-
27 Sep 08
-
03 Aug 08
-
29 Jul 08
-
28 Feb 08
Page Comments
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.