Author Topic: Changing Worpress Site URL via functions.php  (Read 3599 times)

admin

  • Administrator
  • Newbie
  • *****
  • Posts: 7
  • support.cognetic.com
    • View Profile
    • cognetic.com
Changing Worpress Site URL via functions.php
« on: June 03, 2012, 04:39:59 AM »
1. Add these two lines to the file, immediately after the initial "<?php" line
Code: [Select]
update_option('siteurl','http://worpresssite.com');
update_option('home','http://wordpresssite.com');

2. Load the login or admin page. The site should update to the new URL in step 1.

3. IMPORTANT: Remove the lines you added.  Do NOT leave those lines in there. Remove them immediately after the site is up and running again
« Last Edit: June 03, 2012, 04:45:03 AM by admin »