Skip to content

Instantly share code, notes, and snippets.

@jwdeane
Created August 9, 2010 14:20
Show Gist options
  • Save jwdeane/515470 to your computer and use it in GitHub Desktop.
Save jwdeane/515470 to your computer and use it in GitHub Desktop.
Changed your Wordpress domain?
// Edit themes functions.php. Right after initial <?php line place the following:
update_option('siteurl','http://example.com/blog');
update_option('home','http://example.com/blog');
@jwdeane
Copy link
Author

jwdeane commented Aug 9, 2010

Saves you manually editing the siteurl in mysql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment