Relative urls please?
-
How do I tell WP to generate relative urls for links to images and other media, and links to other posts/pages?
When these links are generated completely dynbamically (like via the bloginfo() function) it is ok-ish, but when fully-qualified url’s find their way in posts/pages it becomes a royal pain in the butt to move the site from the development/staging url to a live url.
Basically I’d have to search/replace the *entire* database to be fully sure that everything has been deployed good and well.
Not that this happens oftenly for a single site, but it does happen for every site that I have to build. After all, we can’t put an empty site onto the live environment.
So how do I go about this? Relative url’s don’t hurt, or I don’t see how they could.
- The topic ‘Relative urls please?’ is closed to new replies.