[wp-hackers] Why WP_SITEURL and not $_SERVER['HTTP_HOST']?
hal at burgiss.net
Tue Mar 30 10:27:16 UTC 2010
On Tue, Mar 30, 2010 at 04:03:41AM -0400, Mike Schinkel wrote:
> P.S. Hmm. If we need a constant, is there a reason why WP_SITEURL is not
> just set in wp-config.php based on the value of $_SERVER['HTTP_HOST']?
See http://codex.wordpress.org/Editing_wp-config.php, which mentions just
this. I find it very useful for moving projects around from development
environments to production, and never had it cause a problem.
More information about the wp-hackers