1

my old site 'example.com' is now 'archive.example.com' and there are many absolute URLs of images on it, how can I use this feature of 'Admin Tools' to solve my problem?

4

In AdminTools set "Enable Link Migration" to Yes and then enter the old host name ie. example.com (don't include http:// at the front)

However this will not solve your problem.

The fastest way is to export the SQL database and to replace every instance of http://example.com with http://archive.example.com and then reload the database. It only takes a few minutes

To do this on a CPanel site, use phpMyAdmin, click on the database in question, so it loads the structure, and then click Export. Make sure you select SQL, set compression to ZIP or GZIP (whatever archive extraction utility you use) and also "Add DROP TABLE..." to the settings and then download. Extract the file, and do the "find and replace" in a text editor and save it. (Zip it to save upload time and then in phpMyAdmin click Import and upload the file.

Test the site and ensure that the lnks have changed correctly. If you screw up you can always reload the archive of the original database, or redo the process using a fresh version and be a bit more careful with what you change.

In the future, use relative links in your Joomla articles and code and you will avoid this.

  • thanks, I found a easier way to do it, this extension extensions.joomla.org/extension/db-replacer . – Brainiac Nov 30 '15 at 8:44
  • a migration plugin might be easier for some, providing a step by step process, but I said fastest, not easiest. Fastest for web devs who migrate sites on a regular basis (no plugin install/uninstall etc.). Just need to learn what find/replace pairs to use. This is particularly the case with Wordpress. – garth Sep 21 '16 at 6:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.