I rewrote the rule in my url as follows:
RewriteRule ^(.+)$ index.php?path=$1 [QSA,L]
In php I get the parameters of $_GET['path']
and set up my controller, action and parameters.
$this->controlador
, $this->acao
and $this->parametros
If I mount the url in this format, everything works fine in my application:
http://www.example.com/controlador/acao/parametro1/parametro2/etc...
Being that I need to know what's coming from the form. So I wanted to pass the query string as a parameter. Type:
http://www.example.com/controlador/acao/query_string
Where query_string = id=123&name=jose&dica=ok
The problem is that the global variable $_GET
is returning the following:
$_GET['path'] = "controlador/parametro/id=123"
$_GET['name'] = "jose"
$_GET['dica'] = "ok"
I would like to see only the $_GET['path']
with the complete string.
Type:
$_GET['path'] = "controlador/parametro/id=123&name=jose&dica=ok"