[wp-hackers] "Masking" a domain name in a wordpress install
Jeremy Clarke
jer at simianuprising.com
Fri Mar 5 19:04:06 UTC 2010
On Wed, Mar 3, 2010 at 12:23 PM, Otto <otto at ottodestruct.com> wrote:
> You can read the instructions here to change it back to the way it was
> and get the site working again:
> http://codex.wordpress.org/Changing_The_Site_URL
Just for the record, the best solution in these cases is almost always
to use the two definitions in wp-config.php that override the blog and
site urls in the settings. The wp-config.php values for urls are
important both for migrations and for keeping multiple test installs
(dev->stage->live) so that when you update the test DB with a backup
of the live DB you don't have to constantly wrangle the urls.
define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );
Using this system you will have full control over the urls of your
site and can easily work around the issues stated above where the
Settings page becomes innaccessible or at least un-submittable due to
misconfiguration.
--
Jeremy Clarke
Code and Design | globalvoicesonline.org
More information about the wp-hackers
mailing list