Hello, I do not know if the title of the question makes much sense, but the question is:
I have this code:
RewriteRule ^teste/([a-z]+)$ settings/php/teste.php?lib=$1
It creates a redirect, but when I try to add variables by URL it does not work:
www.meusite.com/teste/ {variable}? id = {variable}
Specifically, everything after the question mark PHP does not recognize as a variable and so I can not execute my scrip. Is there a better way to configure apache so I can rewrite the URL already by adding a default variable as if it were a directory, and then use the variables in a normal way? Or what do you guys suggest so I can use a URL like that?