Adapting the RewriteRule to nginx under engine SocialEngine

0 like 0 dislike
7 views
Friends, help. Try to run SocialEngine directly under nginx/php-fpm without Apache. In three simple RewriteRule, but sit for a second hour without success blunt.

Here's the original:

RewriteCond %{REQUEST_URI} /index\\.php
RewriteRule (.*) index.php?rewrite=2 [L,QSA]

RewriteCond %{REQUEST_URI} /$
RewriteRule (.*) index.php?rewrite=1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?rewrite=1 [L,QSA]


As it will be in the nginx configuration?
Most of the questions is not previously familiar to me flag QSA. I feel a catch somewhere in it.
by | 7 views

2 Answers

0 like 0 dislike
location /index.php {
rewrite ^(.*)$ /index.php?rewrite=2 last;
}
location / {
index = index.php?rewrite=1
\r
if (!-e $request_filename) {
rewrite ^(.+)$ /index.php?rewrite=1 last;
}
}
by
0 like 0 dislike
I recommend to turn off. mailing list nginx. There you professionally tell (and even write) the best option. It happens, and Igor himself. Often mestrovich rewrites regexpi with only a couple of simple locations, whose.
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
asked Jun 7, 2019 by criminalist
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
28,863 users