General > News, Information & Feedback

Broken Links?

(1/2) > >>

aBc:
Is there a quick fix  / shortcut whereby individuals might possibly edit and correct broken links, other than reporting and requesting a fix? Or is it a manual, case-by-case occurrence scenario?

Here’s one:
http://macos9lives.com/smforum/index.php/topic,762.msg10461.html#msg10461

Have encountered 4 or more today and don’t relish the idea of collecting and presenting an extensive list, if there’s possibly a simpler way or fix. ;)

Perhaps a stupid question - but I had to ask.

ssp3:
I've raised this question before. Start from here:
http://macos9lives.com/smforum/index.php?topic=7031.msg54282#msg54282

aBc:
Thanks. So in essence, according to Knez that answer is no.


--- Quote from: Knezzen on March 30, 2024, 01:34:53 PM ---The only thing we can do at this point is to edit the posts we stumbled upon (ask a mod using the "report post" function) to change it to the technically original, unaltered link (the second link).

I can look into scripting the thing, but I'm not sure if it's worth the effort.

--- End quote ---

However, if I manually alter the slash to a "question mark" and the comma to an "equal sign" in the address; the prior linked page then loads.



https://macos9lives.com/smforum/index.php/topic,762.msg10461.html#msg10461

https://macos9lives.com/smforum/index.php?topic=762.msg10461.html#msg10461

ssp3:
Yes, it is that easy.
Later in that thread I suggested using something similar to BBEdit's multi file search and replace.
Although I know nothing about SQL databases, I still don't want to believe that there are no tools that can do something similar.

https://www.sqltutorial.org/sql-string-functions/sql-replace/

Knezzen:
I have been trying to narrow it down in a copy of the production database, so it's being worked on. It's my youngest sons birthday today, so I'll have more time to fiddle with it tomorrow.

But yeah, there's a function in simplemachines that "rewrites" the URL to something that was deemed more search engine friendly back in the early 2010's. Time has moved on and such rewrites are not compatible with newer web servers. Looking back at older posts, it was turned off in the very beginning and turned on some time around 2018 or so.

So it's either that we poke at the database, or edit every link in every post as we stumble upon them. Hacking up the web server to support this rewrite rule probably breaks something and running an old version of the web server just for the links is not really on the table.

We're using the "real" and "unmodified" URL's now, so the best solution and future safe solution is to use what we have now and edit the older posts manually or scripted to change them to the correct URL.

Navigation

[0] Message Index

[#] Next page

Go to full version