hardcode the WordPress siteurl to dev.mysite.com

When creating a dev version of a wordpress site, put the following in your wp-config for an immediate fix:

define(‘WP_HOME’,’http://dev.mysite.com’);
define(‘WP_SITEURL’,’http://dev.mysite.com’);

Another option is to edit the wp_options table as follows:

select * from wp_options where option_name=’siteurl’;

update option_value set option_value=”http://newsite.com” where option_name = ‘siteurl’;

About vicki

Welcome to the Sovereign Republic of Vickistan. I am the President here. Lucky me! No taxes or laws yet. Lucky you!
This entry was posted in Linux. Bookmark the permalink.