RewriteCond %{REQUEST_URI} /[^/.]+$
RewriteRule ^(.*)$ https://localhost/$1/ [R=301,L]
RewriteCond %{THE_REQUEST} /index\.php [OR]
RewriteCond %{HTTPS} !on [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*?)(index\.php|$) https://localhost/$1 [R=301,L] RedirectMatch 301 ^/videoroliki/ https://site.ru/RewriteEngine on
RewriteRule ^videoroliki/ https://site.ru/ [R=301,L] RewriteCond %{THE_REQUEST} ([^\s]*)\.php(\?[^\s]*)? RewriteRule (.*) %1 [R=301,L]
RewriteCond %{THE_REQUEST} "^GET /(\S*)\.php"
RewriteRule . https://atm-stroy.com.ua/%1 [R=301,L]<form class="form-submit" method="POST" action="/mail.php"> RewriteCond %{QUERY_STRING} ^(page=\d+)/
RewriteRule ^razdel($|/).* /$0?%1 [R=301,L] RewriteEngine on
RewriteCond %{THE_REQUEST} " /pages(/\S*)"
RewriteRule ^ %1 [R=301,L]
RewriteCond %{DOCUMENT_ROOT}/pages/$1 -f
RewriteRule ^(.+)$ /pages/$1 [L] RewriteCond %{REQUEST_URI} ^((?>/([^/]+))+?.*?)/\2($|/.*)
RewriteCond %1%3 ^((?>/([^/]+))+?.*?)/\2($|/.*) [OR]
RewriteRule ^produktsiya/ %1%3 [R=301,L] RewriteCond %{QUERY_STRING} (^|&)page=18($|&)
RewriteCond %{REQUEST_URI} ^/mebel/komod-arlen-8$
RewriteRule ^(.*)$ https://site.ru/rossiya/komod-arlen-8?page=2 [R=301,L]RewriteCond %{QUERY_STRING} (^|&)page=18($|&)
RewriteRule ^mebel/komod-arlen-8$ https://site.ru/rossiya/komod-arlen-8?page=2 [R=301,L] RewriteEngine on
RewriteCond %{THE_REQUEST} "^GET /(somepage)\.php(?:.*?[?&]id=(\d+)|)"
RewriteRule ^ /%1/%2? [R=301,L]
RewriteRule ^(somepage)/(\d+)$ /$1.php?id=$2 [L] server {
listen 443 ssl;
server_name site.io;
access_log off;
ssl_certificate "/var/node/********.crt";
ssl_certificate_key "/var/node/********.key";
root /var/www/service/public_html;
location / {
index index.php index.html index.htm;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9001;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ ^/api/v2/(.+) {
try_files $uri /api/v2/index.php?q=$1&$args;
}
}