Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media


Welcome, Guest. Please login or register.
Did you miss your activation email?

July 15, 2020, 05:49:38 AM

Login with username, password and session length
  • Total Members: 3786
  • Latest: Deaks
  • Total Posts: 190444
  • Total Topics: 20857
  • Online Today: 75
  • Online Ever: 917
  • (January 21, 2020, 09:02:26 AM)
Users Online
Users: 1
Guests: 68
Total: 69

Author Topic: How to move all data + TP + SMF to a different domain/server?  (Read 1248 times)

0 Members and 1 Guest are viewing this topic.

Offline Wichtlmex

  • Full Member
  • ***
  • Posts: 102
I am building atest site right now. If everything works, I would like to move to a different domain.
I see there are many absolute links to images etc. Is it anyway possible to manage a relocation without too much extra work?
SMF 2.1 RC1, TP 1.6.3

Offline @rjen

  • Support Team
  • *
  • Posts: 2261
    • FJR-club Nederland
Re: How to move all data + TP + SMF to a different domain/server?
« Reply #1 on: May 31, 2019, 07:08:18 AM »
Fist of all, try to stay away from absolute links as much as possible:
in articles this code works just as well as the complete path:

Relative: <img src="/Documenten/Images/Illustraties/Techniekdag_2009.JPG>

Absolute: <img src="https://test.fjr-club.nl/Documenten/Images/Illustraties/Techniekdag_2009.JPG>

Links in menu options etc in TP will work: they are relative to the ID's of the article linked too..
Running TP2.0.0 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info

Offline Oldiesmann

  • Jr. Member
  • **
  • Posts: 37
    • Cincy Space
Re: How to move all data + TP + SMF to a different domain/server?
« Reply #2 on: June 15, 2019, 12:02:01 AM »
Depending on how different the URLs will be you could also use MySQL's REPLACE() function to update things via phpMyAdmin...

Code: [Select]
UPDATE table SET column=REPLACE(column, 'oldtext', 'newtext');
Note that you should back up your database before trying this and it may take a while on larger forums or forums with a lot of large posts.