[wp-trac] [WordPress Trac] #32639: A URL Agnostic Wordpress
WordPress Trac
noreply at wordpress.org
Tue Dec 22 14:37:11 UTC 2015
#32639: A URL Agnostic Wordpress
-----------------------------+------------------------------
Reporter: mattfiocca | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses:
-----------------------------+------------------------------
Comment (by mattfiocca):
@SergeyBiryukov , thanks for sharing that design decision link. I think
each of the points made there could be addressed in my feature request
though:
'''RSS Readers''': the application would still display absolute urls, they
just wouldn't be stored in the DB absolutely. Its my understanding that
RSS readers aren't pulling content directly from the database, but are
rendering an xml template. In this RSS template, you would use permalink
and site_url() functions for a resource, and these functions could return
the domain, blog root (/blog, if set that way for example), and the
relative URI from the database concatenated together to form the absolute
URL.
'''Permalinks''': The root-relative issue would be addressed with the
introduction of the BLOG_ROOT config constant (or even an entry in the
wp_options table).
'''Moving sites''': You would only need to revise the BLOG_ROOT config, if
it was previously set to "/dev", it would just become "", and the site
would continue to display the correct absolute URLs, built dynamically
from the new conditions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32639#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list