En lugar de simplemente mostrar el registro aleatorio, elige el id del registro y haz una redirección a la versión que muestra el id.
$randomId = // whatever method you use to choose it header( "Location: https://site.com/index.php?id=$randomId" );
En lugar de simplemente mostrar el registro aleatorio, elige el id del registro y haz una redirección a la versión que muestra el id.
$randomId = // whatever method you use to choose it header( "Location: https://site.com/index.php?id=$randomId" );