Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
rewrite ^/(.+)-([a-z])$ /$2/$1.html permanent;
try_files $uri $uri/ $uri.php;
location ~* ^(file1|file2)\.php { # FastCGI here } location ~* \.php { deny all; }
А он вообще есть у меня?
server { server_name example.ru; listen 80; listen 443 ssl; rewrite *. https://www.example.ru$request_uri permanent; }
location = / { content_by_lua_file /var/www/html/index.lua; lua_code_cache off; }
location ~ ^/[0-9]+ { rewrite ^/([0-9]+)[^0-9]*$ /$1.html; }