Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/styllloz/public_html/qa-include/qa-base.php on line 1175

Warning: session_start(): Cannot start session when headers already sent in /home/styllloz/public_html/qa-include/app/users.php on line 162

Warning: Cannot modify header information - headers already sent by (output started at /home/styllloz/public_html/qa-include/qa-base.php:1175) in /home/styllloz/public_html/qa-include/app/users.php on line 1267

Warning: Cannot modify header information - headers already sent by (output started at /home/styllloz/public_html/qa-include/qa-base.php:1175) in /home/styllloz/public_html/qa-include/app/page.php on line 356
Adapting the RewriteRule to nginx under engine SocialEngine - code-flow.club | Q&A

Adapting the RewriteRule to nginx under engine SocialEngine


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
9 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 | 9 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
35,181 users