[wp-hackers] Why WP_SITEURL and not $_SERVER['HTTP_HOST']?

Mike Schinkel mikeschinkel at newclarity.net
Tue Mar 30 21:48:23 UTC 2010

On Mar 30, 2010, at 5:19 PM, Mike Little wrote:
> So what you really need is not site url but a separate setting for domain of
> a site, which could be auto adjusted when moved to a different domain. Which
> is a different thing from the current 'siteurl' option.


> WPMU does something a little like that, where the domain and path part are
> separate (in order to support multiple domains and subdirectories. Perhaps
> some of that has gone into WP 3.0?


> My anecdote was merely to illustrate that the code to automatically detect
> and adjust settings for moving an existing site to a new domain needs to be
> quite sophisticated as, in theory, it may need to cope with someone moving
> to an installation using an IP address and a non standard port number.

Yes, agreed. That's actually why I'm discussing it, to try to figure out all the requirements, and more importantly, the pitfalls.


More information about the wp-hackers mailing list