These are my rules of .htaccess
# Impedir que se pueda ver el listado de contenidos de un directorio
Options All -Indexes
# Url Amigables
RewriteEngine on
RewriteRule ^([a-zA-Z0-9\-]+)$ index.php?action=$1
the variable I send is
<a href="editarfactura?action='.$item["numerofactura"].'" class="edit" ><i class="material-icons" data-toggle="tooltip" title="Editar"><span class="glyphicon glyphicon-edit"></i></a>
and I show it with:
echo $_GET['action'];
but the get what it shows me is "editfactura" instead of what the variable has.