aboard

Author Topic: Link updates  (Read 893 times)

0 Members and 1 Guest are viewing this topic.

Ergyd

  • Neophyte
  • *
  • Posts: 37
  • Karma: 0
on: May 19, 2018, 02:11:55 am
Noticed that all of the older messages which link to other forum discussions are all still linked via the old website address, and therefore don't work...

Not expecting anyone to go through and update them all (!) but was wondering if there's a trick I can use, as and when, to follow those links to their targets?

So much RE knowledge still to learn, and following those discussion tangents would be great!

Diolch


Bilgemaster

  • Just some guy
  • Grease Monkey
  • ****
  • Posts: 418
  • Karma: 0
  • 2005 Bullet 500ES in "Mean Green" Military Trim
Reply #1 on: May 19, 2018, 11:12:01 am
If you could identify a few examples of such moribund forum links, there is a consistency to their URL changes such as you seem to be describing, AND the older postings still exist under consistent new URLs, then the Admins could do something called a "Global Search and Replace" to update all of them.

For example, using the phpMyAdmin tool often used to administer SMF forums like this, the coding would look something like this:

Code: [Select]

UPDATE smf_messages set body = REPLACE(body, 'www.oldURL.com', 'www.newURL.com')

Naturally, a wise Admin would do well to make full backups before leaping into the forum tables with a machete and some superglue.

« Last Edit: May 19, 2018, 11:15:35 am by Bilgemaster »
So badass my Enfield's actually illegal  in India.


Ergyd

  • Neophyte
  • *
  • Posts: 37
  • Karma: 0
Reply #2 on: October 28, 2018, 03:40:11 am
Just noticed your reply to this, Bilgemaster...

And as there hasn't yet been a change in the situation, i thought I'd give the few examples requested...

All of the links I'm referring to begin with
http://www.enfieldmotorcycles.com/forum/index.php/

A full example is this one, which I believe is to do with an ignition switch relocation (which I'm considering).

http://www.enfieldmotorcycles.com/forum/index.php/topic,7829.msg233636.html#msg233636

Impossible to get at those topics now, do we think?


Bilgemaster

  • Just some guy
  • Grease Monkey
  • ****
  • Posts: 418
  • Karma: 0
  • 2005 Bullet 500ES in "Mean Green" Military Trim
Reply #3 on: October 29, 2018, 09:49:14 pm
Hmmm...https://forum.classicmotorworks.com/index.php/topic,7829.msg233636.html#msg233636 instead of your "old domain" link to "http://www.enfieldmotorcycles.com/forum/index.php/topic,7829.msg233636.html#msg233636 seems to get one somewhere, but I don't see anything much there about the ignition switches you mention. But hey, why not try giving these type of substitutions (highlighted above in boldface) a whirl or three and see what comes of it.

Please note well that the more secure "https" instead of the old "http" is in play in the new URLs. Then again, that whole old vat of digital SpaghettiOs may well have been re-indexed and re-ordered and re-numbered during the migration to this "new and improved" forum system, so those old bookmark babies of yours may well have sailed right out the window with that tsunami of bath water.


Remembering the "Old Ways"
« Last Edit: October 29, 2018, 10:27:52 pm by Bilgemaster »
So badass my Enfield's actually illegal  in India.