Send parameters via GET to a friendly URL

Asked

Viewed 453 times

2

I have a page that the URL friendly is more or less like this: http://www.dominio.com.br/pt/produtos/

And the real URL is like this: http://www.dominio.com.br/site/produtos/index.php?idioma=pt

I’m using IIS to develop, so configure the web-friendly Urls.config. When to access this page: http://www.dominio.com.br/pt/products/? q=test

Works correctly, the user-friendly URL works and the sent parameter "q" appears correctly in my PHP programming.

However, when uploading to the Linux server, where user-friendly Urls are configured in htaccess, that same URL: http://www.dominio.com.br/pt/products/? q=test

It even works by loading the right page, but I can’t recover the "q" parameter. Does anyone know why?

In htaccess the rule is configured as follows:

RewriteRule ^([a-z]{2})/produtos(/?)$ /site/produtos/index.php?idioma=$1 [NC,L]

1 answer

-1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.