RewriteRule (.*) http://mysite.ru/$1\?city=%1 [L,QSA]
nginx.service - nginx - high performance web server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2017-07-07 16:56:21 MSK; 2 weeks 5 days ago
Docs: http://nginx.org/en/docs/
Process: 4901 ExecStop=/bin/kill -s QUIT $MAINPID (code=exited, status=0/SUCCESS)
Process: 8526 ExecReload=/bin/kill -s HUP $MAINPID (code=exited, status=0/SUCCESS)
Process: 4908 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Process: 4906 ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Main PID: 4910 (nginx)
CGroup: /system.slice/nginx.service
├─4910 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
├─8529 nginx: worker process
├─8530 nginx: worker process
├─8531 nginx: worker process
├─8532 nginx: worker process
├─8533 nginx: worker process
├─8534 nginx: worker process
├─8535 nginx: worker process
└─8536 nginx: worker process
в”њв”Ђ17082 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
# проверяем есть ли еще что-то после каталога
RewriteCond %{REQUEST_URI} (.*)binty-poliuritanovye/(.+)$ [NC]
# это не физический файл
RewriteCond %{REQUEST_FILENAME} !-f
# Проверяем, оканчивается ли запрашиваемый url на .html и до него есть что-то. и еще и регистронезависимо
RewriteCond %{REQUEST_URI} ^.*([^/].+)\.html$ [NC]
# Теперь переписываем url, удаляя суффикс
# Выделяем шаблон для обработки, и подставляем её же без html
RewriteRule ^(.*)$ %1/ [R=301,L]