Search engine index results are broken, proposed fix.

AccurateCalls

Senior Member
Joined
Apr 17, 2022
Messages
284
Location
Finland
I think it would be a good idea if you replaced the old 'showthread.php?t=xxxxxx' script with one that reads the 'http-get-parameters' for the thread ID, and then forwards to the corresponding thread on the new forum.

Otherwise all old Google searches now return a 404 not found. This is what such a script might look like:

Code:
<?php
//redirects from 'showthread.php?t=xxx' to 'index.php?threads/xxx'

// Get the thread ID 't' parameter from the URL
$thread_id = $_GET['t'];

// Redirect to the new URL format
header("Location: index.php?threads/$thread_id");
exit;

?>

Please note, I am not fluent in PHP, nor is web development anywhere near my expertise, and I did not test the script, but I believe the above should fix all broken search results.
 
Just fixed that, had to get the xenforo support on the ball, but they don't work on the weekends... So it took a while but it's working now.
Thanks for bringing this up AC!
 
Back
Top Bottom