у меня есть этот файл .htaccess для apache:
# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
# no, so we redirect to our front web controller
RewriteRule ^(.*)$ index.php [QSA,L]
как я могу преобразовать его в .htaccess для nginx?
я пробовал с этим:
location / {
rewrite ^/$ /index.html;
rewrite / /RewriteRule;
rewrite ^/(.*)$ /index.php last;
}
Вы считаете правильным?
Большое спасибо!