How can I edit the Rewrite in Nginx (downloads php files)?

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
Translate a website from Apache to NGIX. Can't configure the config.
The goal is to have the following rule .htaccees
RewriteRule ^(strana)/([^/]*)(/?)+$ index.php?do=xfsearch&xn=$1&xf=$2 [L]
Through the convector will receive:
rewrite ^/(strana)/([^/]*)(/?)+$ /index.php?do=xfsearch&xn=$1&xf=$2 last;
And all like anything, the link as www.мойсайт/strana/Россия opens normally, but if you put at the end of the slash / , the browser offers to download the file.
by | 11 views

1 Answer

0 like 0 dislike
works with slash

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
40,796 users