[wp-hackers] WP Development & Production Sites

Bill Dennen dennen at gmail.com
Fri Nov 26 19:02:48 UTC 2010


>> Because of the slightly stupid way WordPress stores it url's

It would be nice if WordPress stored its URLs without the protocol and domain.

ie. as

/web/files/2010/10/Picture-12.png

rather than

http://somedomain.com/web/files/2010/10/Picture-12.png

Aside from making it easier to move blogs from one server to another,
this would help where you might need a single page to be served via
SSL, for example.

If that can not be done... To help with that specific problem (SSL vs
non-SSL), the URLs could be stored as this, which is better than the
way they're stored now.

//somedomain.com/web/files/2010/10/Picture-12.png

This way, the protocol of the calling page is used by the browser to
pull in the photo.

I'd vote for offering options for storing the URLs, but having
sensible defaults. I am not sure storing the whole, fully-qualified
URL is the most sensible?

-Bill


More information about the wp-hackers mailing list