[wp-hackers] Absolute vs. relative URLs

Matthias Bauer moeffju at moeffju.net
Sat Apr 21 13:03:14 GMT 2007


On 21.04.2007 14:50 Leonid Mamchenkov wrote:

> Absolute URLs is about the biggest problem in our
> development/deployment process for our customer's web sites.  Since
> most of them already have web sites online, we can't develop under the
> target domain.  We use a different host instead, and after everything
> is done and ready, we have to change the 'home' and 'siteurl' values
> in wp_options, 'guid' in wp_posts, and do a search-and-replace through
> the text of all pre-set posts and pages ('About us', 'Contact us', and
> whatever else the customer might have requested).
> 
> While we managed to somewhat automate the process, it's still error
> prone and doesn't work very well in some situations, such as, for
> example, several domains per web site.

Aside from the matter of absolute vs. relative URIs, why don't you just
set up a development server and make an internal DNS entry to point the
target domain to it, or change your HOSTS file? Or develop on the target
server in a subdirectory, then change the document root when finished,
or use rewrite? There are many solutions to your problem that don't
require changes to the WordPress core.

Or you could just roll those patches into your deployed versions yourself...

-Matt


More information about the wp-hackers mailing list