Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-02-06 16:25:07
- scdoody
- Member
- Registered: 2006-10-18
- Posts: 129
Transferring Textpattern from domains
I have a site I’m creating – but I don’t know what domain it will reside on when its all done. I want to develop my site with Textpattern on a testdomain.com and the n when I’m done and we’ve decided on the final name – I want to move the entire site to the realdomain.com. Is this doable and is it easy – or would it be better to wait until I know the realdomain.com?
Thanks!
Offline
Re: Transferring Textpattern from domains
It is very straight forward to move txp installs. All you need is phpMyadmin and an ftp client.
One thing to look out for is the collation (utf_8, latin1 etc). When you eventually move databases make sure that they are the same.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Transferring Textpattern from domains
In the Textbook
edit: if both domains are on the same server it should be easier. Also, the plugin rss_admin_db_manager may be a help.
Last edited by jordi (2008-02-06 16:50:40)
Offline
#4 2008-02-07 19:52:49
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Re: Transferring Textpattern from domains
Hi,
Is there a guide in the textbook or the forums to move my TXP install from the root directory to a sub-domain (same server and domain) ? I want to be sure to not break my install and make a mess.
Thanks for any clue!
Offline
Re: Transferring Textpattern from domains
It’s pretty simple:
- Upload a new TXP install, but don’t install it.
- Either copy your existing config.php over to textpattern/ or edit config-dist.php and save it as config.php
Offline
#6 2008-02-07 21:41:14
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Transferring Textpattern from domains
lisionosk wrote:
Is there a guide in the textbook or the forums to move my TXP install from the root directory to a sub-domain
Yes, here is a how-to for moving from subdomain to root. Just replace ‘root’ with ‘subdomain’ and the other way around :)
Offline
#7 2008-02-19 17:41:49
- alexwest
- Member
- From: Järna, Sweden
- Registered: 2004-08-04
- Posts: 53
Re: Transferring Textpattern from domains
Hi,
A related issue.
One task I frustratingly need to repeat every time I transfer my websites, say from my own developer server to the actual final server, are all hand coded links for navigating through the website, that appear on my articles, of the type
"This article":/section/article_url
So I need to go through every single article that has this kind of link and save it again, so that the actual URL changes in the Database from something like http://old_website_path/section/article_url to http://new_website_path/section_url.
Anyone aware how this process could be sped up?
Many thanks,
Alex
be safe and happy
Offline
Re: Transferring Textpattern from domains
alexwest wrote:
Hi,
A related issue.
One task I frustratingly need to repeat every time I transfer my websites, say from my own developer server to the actual final server, are all hand coded links for navigating through the website, that appear on my articles, of the type
"This article":/section/article_url
So I need to go through every single article that has this kind of link and save it again, so that the actual URL changes in the Database from something like http://old_website_path/section/article_url to http://new_website_path/section_url.
Anyone aware how this process could be sped up?
Many thanks,
Alex
um use <txp:site_url />?
Last edited by iblastoff (2008-02-19 18:08:50)
Offline
#9 2008-02-19 19:48:24
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Transferring Textpattern from domains
iblastoff wrote:
um use <txp:site_url />?
No that doesn’t work either (I think) because the html is saved in the body_html field. So it won’t change until you re-save the article. Someone, Ruud or Mary, posted a mySQL query to change all oldsite.com to newsite.com. I’ll try if I can find it.
Edit: ha, I posted this myself :) See here, but look at Mary’s query two posts down, it’s better.
Last edited by els (2008-02-19 19:57:53)
Offline
Re: Transferring Textpattern from domains
Els wrote:
No that doesn’t work either (I think) because the html is saved in the body_html field.
No. <txp:site_url />
will work – it’s TXP tag, not a Textile :) – so it saves the tag as it is.
In example:
"Hello":<txp:site_url />
becomes in body_html: <a href="<txp:site_url />">Hello</a>
and in page it’s: <a href="http://domain.com/">Hello</a>
or <a href="http://realdomain.com/subdir/">Hello</a>
:)
Last edited by Gocom (2008-02-19 20:15:59)
Offline
#11 2008-02-19 20:25:49
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Transferring Textpattern from domains
Gocom wrote:
"Hello":<txp:site_url />
becomes in body_html:<a href="<txp:site_url />">Hello</a>
You’re right of course :)
Offline
#12 2008-02-20 07:30:11
- alexwest
- Member
- From: Järna, Sweden
- Registered: 2004-08-04
- Posts: 53
Re: Transferring Textpattern from domains
Thanks for your answers.
Yes, it does seem to work that way in the database, but (at least in my version of TXP 4.0.6) Textile will not accept something like "Hello":<txp:site_url />
. The output on the webpage then becomes
“Hello”:http://www.domain.com
be safe and happy
Offline