[wp-hackers] Site Address during development

Philip M. Hofer (Frumph) philip at frumph.net
Thu Sep 2 14:39:02 UTC 2010


Wouldn't you think that someone creating a quick loop of the posts with a 
str_replace('oldurl', 'newurl', $the_content);  then resaving the post each 
pass would be enough ?

- Phil


----- Original Message ----- 
From: "Otto" <otto at ottodestruct.com>
To: <wp-hackers at lists.automattic.com>
Sent: Thursday, September 02, 2010 7:32 AM
Subject: Re: [wp-hackers] Site Address during development


> On Thu, Sep 2, 2010 at 7:36 AM, Michael Clark
> <dc153464a11bcf5aeb18180db28017fb.wp-hackers at planetmike.com> wrote:
>> Actually, it seems silly to embed the domain name into the posts and 
>> pages
>> at all. It's adding a bit to the page, plus possible delaying the loading 
>> of
>> pages by fractions of a second as the page requests have to hit DNS.
>> Shouldn't everything embedded be relative to the root directory of
>> WordPress? Thanks, Mike
>
> 1. Browsers cache DNS requests. So do operating systems.
>
> 2. Your content isn't only displayed on the website. Feeds can contain
> it too. And relative URLs don't work there.
>
> -Otto
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> 




More information about the wp-hackers mailing list