Remap URLs from Relative to Absolute

by Josh H   Last Updated August 13, 2017 17:08 PM

I'm wrapping up a port from Jekyll to WordPress and have several thousand relative URLs I need to remap so they're absolute within my posts.

Actual URL examples:

/gangs/gangster-disciples
/housing-projects/cabrini-green
/hoods/bridgeport

Expected URL samples:

http://example.com/gang/gangster-disciples
http://example.com/project/cabrini-green
http://example.com/neighborhood/bridgeport

Dax isn't turning up anything useful based on my search phrases and I'm not able to find any plugins or similar questions to study.

Short of writing some update queries I'm curious to know if there's a more streamlined solution available I may be overlooking, such as a plugin-based solution. What's the easiest way to remap the example relative URLs to absolute?



Related Questions



I can't update the siteurl or home url in wordpress

Updated August 12, 2017 22:08 PM



Migrating wordpress multisite

Updated June 01, 2015 23:03 PM