Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Relative and absolute links when deploying to production
Hi all.
We set up a script to move DB from testing to production. All works as expected except some links written in textile kept the absolute link to testing website.
E.G.
"some link":some-link
in testing becomes testing-domain.tld/some-link
syncing testing DB to production in the article we still have "some link":some-link
while the HTML was still pointing to testing.
We guess this issue is due to TXP that creates a HTML version of article contents so that all links to testing they are carried on to production, so, is there a way to regenerate all of the Body_html column content at once?
Offline
Re: Relative and absolute links when deploying to production
if the site is at the root, for dev and prod. you can try with an absolute link :
"some link":/some-link
I would like a system to link local ressources with textile. But this is not for today.
Offline
#3 2011-05-03 19:06:33
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Relative and absolute links when deploying to production
Does this help?
Offline