[wp-hackers] absolute URLs in plug-ins and custom types
bill.erickson at gmail.com
Wed Jul 4 18:32:45 UTC 2012
If the client asks you to move the site to a subdirectory, all your
relative links will be broken.
And even if you know your environment well and build your specific tool to
use relative URLs, WordPress core uses absolute URLs for everything so
you'd need to update those anyway (ex: any images inserted into posts).
NOTE: To better serve my clients, partners, and most importantly my family,
I've begun checking email only three times per day.
For phone calls, please schedule here: http://tungle.me/billerickson . If
it's an emergency, please call now and leave a voicemail
On Wed, Jul 4, 2012 at 1:29 PM, Shasta Willson <shastaw at gmail.com> wrote:
> On Tue, Jul 3, 2012 at 7:34 AM, Bill Erickson <bill.erickson at gmail.com>
> > It's much easier to migrate a site with absolute URLs than it is with
> > relative URLs. Try using a script like this to update the URLs in the
> Ok, I've been thinking about this for two days.
> Why would it be preferable to do a search and replace through the
> database to update absolute URLs, rather than simply use relative URLs
> (or IDs -- interesting idea) in the first place?
> - Shasta
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers