[wp-trac] [WordPress Trac] #56916: Look to the current request to get the URL settings.

WordPress Trac noreply at wordpress.org
Wed Oct 26 18:44:11 UTC 2022


#56916: Look to the current request to get the URL settings.
-----------------------------+-----------------------------
 Reporter:  billpg           |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 I recently raised a bug stating that it was unclear what the two URL
 settings were for, suggesting the text be clarified. On reflection, that
 wasn't really what I wanted. What I really want is for those settings to
 be unnecessary.

 When the PHP is invoked, it knows what the current request URL is.

 If the request is "https://example.com/Rutabaga/TheBestVegetable", then
 the WordPress URL is "https://example.com/Rutabaga/" and the permalinks
 and links to comment POST actions can be based on that.

 If the next day I wire-in a different domain into the same folder of PHP
 files, then suddenly this new URL is the WordPress URL and all the
 permalinks are based on that instead.

 This would have an impact on Multisite. Rather than selecting sub-folders
 or sub-domains, you'd instead configure a list of URL prefixes for each
 site. (For example, "a.example" and "www.a.example" goes to site A.
 "example.com/b" goes to site B.)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56916>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list