I'm using cpanel and php to create my website.
how i can get id from url  http://example.com/id
problem is that when i'm trying to get url , im redirecting to file with id name 404 error !
and i can't get path in index.php page ?
for example when i try to get this url
http://example.com/01OWUY
i want to get 01OWUY with
$link .= $_SERVER['REQUEST_URI']; 
code but i'm going to a 404 error
update :
every user have a id
with this id he can see her info
for example user with id 01OWUY can see her info from database
like this ->
<?php
require 'config.php';
//Database connection
$conn = mysqli_connect(SERVERNAME, USERNAME, PASSWORD, DBNAME);
$user = handle_user($conn, $_SERVER['REQUEST_URI'])
?>
and the function is this ->
// Return true if link is active
function handle_user($conn, $linkId)
{
    $sql = "SELECT *FROM users WHERE link_id = '" . $linkId . "'";
    $result = $conn->query($sql);
    // get user data from db
    if ($result->num_rows > 0) {
        return $result;
    }
    return false;
}
but i get a 404 error !!!
 
    