WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: redirecting dead wiki links ( linuxsecrets.com/tinycorelinux-wiki/ )  (Read 3557 times)

Offline mocore

  • Hero Member
  • *****
  • Posts: 662
  • ~.~
many links around the forum point to [Link deleted, Wiki is fixed.  Rich] which is currently 404

eg http://forum.tinycorelinux.net/index.php/topic,24017.msg151374.html#msg151374


using : https://addons.mozilla.org/en-GB/firefox/addon/redirector/ ( perhaps other similar extensions  exist and could also work ??)

and the below regexp & redirector con-fig
Code: [Select]
Example redirect, try going to [Link deleted, Wiki is fixed.  Rich]
Redirect:^[Link deleted, Wiki is fixed.  Rich]([a-zA-Z0-9_:]*)
to:http://wiki.tinycorelinux.net/doku.php?id=$1
Hint:send old 404 wiki mirror links to the actual wiki
Example:[Link deleted, Wiki is fixed.  Rich] → http://wiki.tinycorelinux.net/doku.php?id=dcore:faq
Applies to: Main window (address bar)



the old broken links will now find new working wiki :D

hope some find this method useful

i guess similar redirector rule could be a temporary workaround  for the old wiki links mentioned hear: http://forum.tinycorelinux.net/index.php/topic,25957.msg166649.html#msg166649




   
« Last Edit: December 02, 2023, 07:44:08 AM by Rich »

Offline CentralWare

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 776
Re: redirecting dead wiki links ( linuxsecrets.com/tinycorelinux-wiki/ )
« Reply #1 on: October 27, 2022, 10:02:48 PM »
many links around the forum point to [Link deleted, Wiki is fixed.  Rich] which is currently 404
eg http://forum.tinycorelinux.net/index.php/topic,24017.msg151374.html#msg151374

@mocore: I just ran a basic search (top right of this page, for example) and came across two posts referring to [Link deleted, Wiki is fixed.  Rich]
(This post will likely now be the third.)
Yes, it's sad when third party sites clean house and things get lost in the wind, but in this case, it might just be easier to update the links in question on the board as opposed to installing firefox extensions (for those who even use FireFox, that is.)
« Last Edit: December 02, 2023, 07:45:00 AM by Rich »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11701
Re: redirecting dead wiki links ( linuxsecrets.com/tinycorelinux-wiki/ )
« Reply #2 on: October 27, 2022, 10:13:05 PM »
Hi CentralWare
I've already started tracking down the posts with  linuxsecrets  and fixing those links.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11701
Re: redirecting dead wiki links ( linuxsecrets.com/tinycorelinux-wiki/ )
« Reply #3 on: October 28, 2022, 12:49:06 AM »
Hi CentralWare
Fixed 65 posts that dealt with actual questions and answers.

I couldn't fix this one:
http://forum.tinycorelinux.net/index.php/topic,24278.msg154005.html#msg154005
I get the following error when clicking the Save or Preview button:
Quote
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@forum.tinycorelinux.net to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Besides this thread, there are 9 other threads containing  [Link deleted, Wiki is fixed.  Rich]  all of
which refer to the Wiki being down. I saw no point in changing them.
« Last Edit: December 02, 2023, 07:36:34 AM by Rich »

Offline mocore

  • Hero Member
  • *****
  • Posts: 662
  • ~.~
Re: redirecting dead wiki links ( linuxsecrets.com/tinycorelinux-wiki/ )
« Reply #4 on: December 02, 2023, 12:41:42 AM »

@mocore:...
 in this case, it might just be easier to update the links in question on the board as opposed to installing firefox extensions (for those who even use FireFox, that is.)

just ftr ... there is a chrome build of redirector ( afair browser extensions are *now* more or less incompatible format , common api's ect  )
https://chromewebstore.google.com/detail/redirector/ocgpenflpmgnfapjedencafcfakcekcd

while the updates and maintenance (THANKS! * admins / mods ect) are  very much appreciated !! (seasoned greetings btw)
its best not to add to much to the `admin task stack`

with this in mind  redirector  extension puts the regex in the hands of those who browse  8)


« Last Edit: December 02, 2023, 12:44:21 AM by mocore »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11701
Re: redirecting dead wiki links ( linuxsecrets.com/tinycorelinux-wiki/ )
« Reply #5 on: December 02, 2023, 08:55:40 AM »
Hi mocore
I tracked the broken linuxsecrets links and replaced them with:
[Link deleted, Wiki is fixed.  Rich]

All except this one:
http://forum.tinycorelinux.net/index.php/topic,24278.msg154005.html#msg154005
Which returns  Internal Server Error  when I try to save (or preview) it.

Offline mocore

  • Hero Member
  • *****
  • Posts: 662
  • ~.~
Re: redirecting dead wiki links ( linuxsecrets.com/tinycorelinux-wiki/ )
« Reply #6 on: December 03, 2023, 01:04:35 AM »
hi rich
thanks for fixing the links on the forum !

 redirecting via regexp might be *generally* be useful for any non-updated links around in bookmarks on blogs / the internet ect ect


Offline CentralWare

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 776
Re: redirecting dead wiki links ( linuxsecrets.com/tinycorelinux-wiki/ )
« Reply #7 on: December 06, 2023, 01:55:19 AM »
All except this one:
http://forum.tinycorelinux.net/index.php/topic,24278.msg154005.html#msg154005
Which returns  Internal Server Error  when I try to save (or preview) it.

@Rich, Remove the dollar signs (x2) where it says $VERSION and it should go through.
Code: [Select]
...
In both files, update the change log to this:
Change-log:     2015/11/22 First version, 7.4.935
Current:        2020/09/23 update 7.4.935 -> $VERSION (matteo)
Replace  $VERSION  with the new version number.
...

Common thread crashes are due to dollar signs and single/double quotes - think of this like escape characters.
MOST of the time, you can remove the offending characters, save the changes, then go back and put them back in afterward.
« Last Edit: December 06, 2023, 02:18:22 AM by CentralWare »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11701
Re: redirecting dead wiki links ( linuxsecrets.com/tinycorelinux-wiki/ )
« Reply #8 on: December 06, 2023, 07:08:13 AM »
Hi CentralWare
Thanks, removing the 2 dollar signs worked. I couldn't put
them back, but it didn't change the context in this case so
that's OK.

Offline CentralWare

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 776
Re: redirecting dead wiki links ( linuxsecrets.com/tinycorelinux-wiki/ )
« Reply #9 on: December 07, 2023, 08:06:08 PM »
@Rich, yes - that's why I mentioned the "fix" as the reference stayed the same with or without it.  This is mainly pointed out for future reference to EXISTING records (as it's HOPED that all of the upgrades done to SMF have corrected the reason the database records are broken in the first place.)  If you come across an "Internal Error" you're likely looking for escapes from the already-saved-content which are completing a "broken loop."  I'm reasonably certain it's caused by content already in the database record (ie: when you preview or save an update, you're asking SQL to Update THIS to THAT where THIS can be partially unescaped and still get by as PHP can make a few very basic assumptions, but THAT just completely throws the system out of whack) where this record I'm typing right now can have the exact same text and yet survive preview/save since there's no broken THIS content:
Quote
In both files, update the change log to this:
Code: [Select]
Change-log:     2015/11/22 First version, 7.4.935
Current:        2020/09/23 update 7.4.935 -> $VERSION (matteo)
Replace $VERSION <-- Dollar $ign$ everywhere...
Back in the day (PHPv4'ish I think) we had to url_encode() everything like this if we wanted to save the content "as close to original" as possible yet allow it to be search-able by url_encoding the search string(s) along with it, and though it worked well, it wasn't perfect.  I imagine SMF had similar issues once upon a time and our forum database is "that old" to have lapsed the years (and SMF revisions and PHP versions!)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11701
Re: redirecting dead wiki links ( linuxsecrets.com/tinycorelinux-wiki/ )
« Reply #10 on: December 07, 2023, 09:12:20 PM »
Hi CentralWare
... where this record I'm typing right now can have the exact same text and yet survive preview/save since there's no broken THIS content: ...
That makes it sound like I should be able to create a fresh
post with the content from:
http://forum.tinycorelinux.net/index.php/topic,24278.msg154005.html#msg154005
with the $ signs added back in and be able to preview it.

I tried that in this thread and still got a forum error.

Offline CentralWare

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 776
Re: redirecting dead wiki links ( linuxsecrets.com/tinycorelinux-wiki/ )
« Reply #11 on: December 07, 2023, 09:41:49 PM »
I have the current database downloading as we speak.
When NOT referring to wikis, forums, etc. I'd say you were correct; with content that has a "history" this may not be the case with SMF (I'll know tomorrow when I dissect the DB tables) as it may have logic similar to DokuWiki's (ie: THIS is your first post, after 90 seconds of posting, everything NEW becomes a layer on top of the original instead of replacing the original --- there's a setting for this in Admin but I cannot say to what extent this is carried out.  ADMIN > FORUM > POST SETTINGS > See the last two fields.  How these affect database rows (append/overwrite) I cannot say.)