Thank you for answering Jill. I could of course do that. The reason I have not done it so far is twofold: I have a home network and my own webserver at home, and in order to route the traffic when working from home I use one of the domains as my internal route through the hosts file, and another to test that what I have done works as well from the outside. Also it's about control - setting it in the config file on the Apache server keeps all my settings within the house. Those are probably not the best of arguments.
In addition, I guess as a former developer I just got a bit annoyed when I found out how wordpress was set up - I find it very unelegant to use hardcoded urls from a setting in a database, and my instinct was that this has just got to go... It seems just as simple to me to get the bloginfo function to pick it up from $_SERVER as to get it from the sql db, if I can just locate the file that sets it, that is if the developers of wordpress have structured this well enought so that it is just one source for setting the parameter. So I guess I'll think it through some more before deciding what to do.
|