put this in your PHP file without extension (see htaccess snippet)
to get to your $_GET variables

htaccess 2” makes use of the built-in PHP functions explode( ) and print_r( ).

01 <?php
02 
03 // if your url looks like this:
04 // http://yourserver.com/thephpfile/edit/12376
05 // $action = $urivars[2]; 
06 // $id = $urivars[3];
07 // will for example be like :
08 // $action = "edit";
09 // $id = "12376";
10 
11 $urivars = explode('/',$_SERVER['REQUEST_URI']);
12  
13 // to see all parts of the uri, do:
14 echo '<pre>';
15 print_r($urivars);
16 echo '</pre>';
17  
18 ?>