[wp-hackers] Absolute vs. relative URLs
if.website at gmail.com
Sat Apr 21 13:42:58 GMT 2007
On 4/21/07, Leonid Mamchenkov <leonid at mamchenkov.net> wrote:
> There is already a configuration file for the database connectivity.
> Numerous other systems keep a URL and a file system path in there too.
> It's native, it's what people are used to. If someone, who is not
> very familiar with WordPress needs to move it around, he/she can just
> edit to lines of config file instead of doing lots of documentation
> reading and then performing SQL trickery. With relative URLs, things
> like backups, hot standby's, and development/production setups are
> trivial. With absolute URLs, these all are a pain.
Actually, with trunk WordPress you can now set the home and siteurl
options in the wp-config.php file using the optional WP_HOME and
WP_SITEURL constants. That would seem to take care of most the cases
you mention, except for absolute URLs within posts, which can be fixed
with the MySQL replace function.
More information about the wp-hackers