<div dir="ltr"><div><div><div><div><div><div> .<br><br></div>     rewrite       REQUEST_URI ""   rewrite<br><br></div>.. - :<br>
<br></div>URL: <a href="http://site.com/page-10">http://site.com/page-10</a><br><br></div>rewrite ^/page-(.*) /main/handler?page=$1;<br>rewrite ^/main/.* /router;<br><br>location / {<br> index index.php;<br>
 try_files $uri $uri/ /index.php?$args;<br>}<br><br> location ~ \.php$ {<br> fastcgi_split_path_info ^(.+\.php)(/.+)$;<br> # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini<br>
<br> # With php5-fpm:<br> fastcgi_pass backend;<br> fastcgi_index index.php;<br> fastcgi_connect_timeout 1;<br> fastcgi_send_timeout 1;<br> include fastcgi_params;<br>
}<br><br></div>         URL <a href="http://site.com/page-10">http://site.com/page-10</a>   REQUEST_URI  fastcgi-  : /router?page=10<br></div>
  REQUEST_URI   $request_uri   "/page-10",   $uri  "/index.php"<br><div><div><br> ,    ,      if .. set<br>
</div><div>        rewrite,        fastcgi   URI.<br></div><div><br clear="all"></div><div><div><div><div><div><div><div><div>.<br>
<br></div><div>-- <br>WBR, Bogdan B. Rudas
</div></div></div></div></div></div></div></div></div></div>