Codice PHP:
$_LINK = array(); //Da ora in poi $_GET[] diventerà $_LINK[]

if (isset($_SERVER["PATH_INFO"])) {
    
$separators = array("/","=");
    
$collection $_SERVER["PATH_INFO"];

    
$collection substr($collection,1);

    if (
substr($collection,-1) == $separators[0]) {
        
$collection=substr($collection,0,-1) ;
    }

    
$collection strip_tags($collection);
    
$collection escapeshellcmd($collection);
    
$collection str_replace($separators[1], $separators[0], $collection);

    
$collection explode($separators[0],$collection);

    foreach (
$collection as $key=>$value) {
        if (!(
$key%2)) {
            
$_LINK[$value] = $collection[$key+1];
        }
    }

Il mio $_GET si chiama $_LINK.. www.sito.it/index.php/action=valore

$_LINK['action'] sarà uguale a valore non $_GET['action'] ma non è questo il problema..

Devo gestire in modo ottimale la query string