News: April 7th, 2019, The Tinyportal team is pleased to announce the release of ~~ TinyPortal 1.6.3! GET IT NOW!!!

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

July 17, 2019, 07:22:48 PM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 188520
  • Total Topics: 20737
  • Online Today: 266
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 14
Total: 14

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

0 Members and 1 Guest are viewing this topic.

Offline Wichtlmex

  • Jr. Member
  • **
  • Posts: 88
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?
Regards
Michael
SMF 2.1 RC1, TP 1.6.3

Offline @rjen

  • Support Team
  • *
  • Posts: 1695
    • 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 TP1.6.3 on SMF2.0 at: www.fjr-club.nl

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

Offline Oldiesmann

  • Jr. Member
  • **
  • Posts: 27
    • 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.