Make WordPress Core

Opened 18 months ago

#56916 new feature request

Look to the current request to get the URL settings.

Reported by: billpg's profile billpg Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:


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 "", then the WordPress URL is "" 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. "" goes to site B.)

Change History (0)

Note: See TracTickets for help on using tickets.