Changing The Site URL « WordPress Codex
Popularity Report
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
URL Tag Cloud
Bookmark History
Saved by 13 people (-5 private), first by anonymouse user on 2007-03-20
- Davidsalahi on 2009-11-28 - Tags wordpress
- Enchance on 2009-11-17 - Tags no_tag
- Scottprock on 2009-11-05 - Tags wordpress , url , change
- Ramonsuarez on 2009-07-23 - Tags wordpress , howto , url , change , tutorial , blog , mysql , database , localhost
- Jonair on 2009-06-17 - Tags wp , 사이트주소설정 , siteurl , 설정 , howto , wordpress
Public Sticky notes
access the database
Highlighted by scootermac315
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');
Highlighted by liishygo
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.
Highlighted by scootermac315
Domain Name Change
Highlighted by liishygo
Look for the field that holds your post "guid". It is usually called guid, but it may have been changed. Write it down.
Highlighted by liishygo
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.
Highlighted by liishygo
Highlighted by liishygo


Public Comment
on 2008-02-28 by jgentry