$getPath = @$_GET["path"]; $getPath = str_replace("xxxx","?id=",$getPath); //$getPath = str_replace("yyyyy","?pid=",$getPath); $getPath = str_replace("zzzzz","?tid=",$getPath); $getPath = str_replace("ssss","/",$getPath); echo $getPath; ?>