Hello, the essence is as follows. There is a site that works on the GET parameters. And it is in several languages. Through .htaccess made a link of the following type: index.php?lang=ru to this: /ru/ .

So now when I make a GET request for another parameter, example: /ru/?search=text . So, it does not work, you need to go directly to index.php?search=text to make it work.

I understand that this is solved through .htaccess .

My code is:

 RewriteRule ^([aA-zZ][aA-zZ])/$ index.php?lang=$1 [L] 

I tried to write another Rule like this:

 RewriteRule ^([aA-zZ][aA-zZ])/\?search=(.*)$ index.php?lang=$1&search=$2 [L] 

No result. I'm not special in .htaccess, please tell me something is wrong.

0