TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 28, 2024, 12:31:02 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,104
  • Total Topics: 21,212
  • Online today: 212
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 69
  • Total: 69

How to move all data + TP + SMF to a different domain/server?

Started by Wichtlmex, May 31, 2019, 01:55:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Wichtlmex

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

@rjen

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 Latest TP on SMF2.1 at: www.fjr-club.nl

Oldiesmann

Depending on how different the URLs will be you could also use MySQL's REPLACE() function to update things via phpMyAdmin...

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.