0
Hello, I don’t know if the title of the question makes much sense, but the question is this::
I have that code:
RewriteRule ^teste/([a-z]+)$ settings/php/teste.php?lib=$1
It creates a redirect, but when I try to add variables through the URL it doesn’t work:
www.meusite.com/test/{variable}? id={variable}
Specifically, whatever is after the question mark PHP does not recognize as a variable and so I cannot run my scrip. Is there a better way to configure apache so I can rewrite the URL by already adding a default variable as if it were a directory, and then use the variables in a normal way? Or what you suggest so I can use a URL this way?
Wouldn’t it be easier to pass
/teste/{variável}/id/{variável}
and treat that in the archiveteste.php
?– Woss
Yes, but I would like to use it in this way that I posted, if I do not find the solution to this problem, I will be required to do so...
– Anderson Santos
And also, you will have several parameters not only id, so make it more complicated..
– Anderson Santos