I want my PHP file to pass: mysite.com/?id=ABC123abc
to mysite.com/ABC123abc
I've tried this code but probably is wrong:
$request = parse_url($_SERVER['REQUEST_URI']);
$path = $request["path"];
$_GET['id'] = $path; //my server returns error 404 - not found
Googled it about and haven't found anything, sorry if is duplicated question.