[wp-hackers] WP Development & Production Sites

Bill Dennen dennen at gmail.com
Mon Nov 29 13:02:15 UTC 2010


There are a few things that are affected by the full URLs but are not
strictly problems for developers.

If you want to force a WP post or page to load via https, all of its
images will generate mixed-content warnings in the browser, because
they will load via http. Having relative URLs for media files would
help this. Or, even using //domain.com/file/photo.jpg would help (ie.
remove the protocol). Perhaps output buffering could help here.

If you run the WP backend with this turned on:
define('FORCE_SSL_ADMIN', true);, the images in the rich editor will
still load via http, and this causes mixed-content warnings, too.
Perhaps output buffering could help here too.

Finally, in Multisite, it's not possible to change a site's path (ie.
change its URL), without also doing a find/replace in the database.
The WP backend lets you change the path, including siteurl and home,
but all of the absolute URLs in the content need to be changed as
well.

-Bill


More information about the wp-hackers mailing list