1
Hello, I’m having trouble getting my htaccess file right, and I have a fixed parameter that I pass manually and one that depends on the user when I click and change Uf, follow the example
RewriteRule ^representantes\/(.*)$ representantes.php?i_page=3&uf=$1
The UF parameter would depend on the user when clicking on a link and changing the state (Uf) the i_page would be fixed. The URL would look like this:
https://teste.com/representantes
https://teste.com/representantes?uf=SC
UPDATE
I tried something like
RewriteRule ^representantes?uf=(.*)$ representantes.php?i_page=3&uf=$1
but I still did not have the expected result.
Would be
/representantes?uf=SC
or/representantes/SC
? Can you confirm if you put the question right? The text asks one thing, the code shows another. That would be the question?– Woss
would be so /representatives? Uf=SC, even put the example to have no doubts
– Saymon