Нужна помощь в переводе правил appache на аналогичные правила nginx Код (Text): RewriteEngine On DirectoryIndex index.php Options +FollowSymlinks RewriteCond %{HTTP_HOST} ^domain\.com$ [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*) index.php?%{QUERY_STRING}
Код (PHP): index index.php; location / { if ($http_host ~* "^domain\.com$"){ rewrite ^(.*)$ http://www.domain.com/$1 redirect; } if (!-e $request_filename){ rewrite ^/(.*) /index.php?$query_string; } }