Как правильно переписать следующие правила под nginx?
Код | # 1 Level RewriteRule ^([a-zA-Z0-9_.^-]+)/$ index.php?lang=ru&info[]=$1 [L,QSA] RewriteRule ^([a-zA-Z0-9_.^-]+)/page([0-9]+).html$ index.php?lang=ru&info[]=$1&page=$2 [L,QSA]
# 2 Level RewriteRule ^([a-zA-Z0-9_.^-]+)/([a-zA-Z0-9_.^-]+)/$ index.php?lang=ru&info[]=$1&info[]=$2 [L,QSA] RewriteRule ^([a-zA-Z0-9_.^-]+)/([a-zA-Z0-9_.^-]+)/page([0-9]+).html$ index.php?lang=ru&info[]=$1&info[]=$2&page=$3 [L,QSA]
|
Nginx работает через fastcgi
Код | location ~ \.php$ { #rewrite ^/$ /index.php?lang=ru break; fastcgi_pass unix:/var/run/php5-fpm/leks.socket; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }
|
|