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;
}
}
# Rewrite arenda/ -> arenda
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^arenda/$ /arenda [R=301,L]
# Rewrite arenda/alias -> arenda?selection=alias
RewriteRule ^arenda/([^/]+)$ arenda/?selection=$1 [L,QSA]
RewriteEngine On
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^ - [R=404,L]
RewriteEngine On
RewriteRule ^ad_pages$ pages/index.php [L]
RewriteRule /s/(.*)$
/
RewriteRule ^s/(.*)$ /wp-content/themes/iconic-one/function/save/index.php?id=$1 [L]
RedirectMatch 301 ^/content/(.+)\.html$ /content.php?r=$1
RewriteEngine On
RewriteRule ^content/(.+)\.html$ /content.php?r=$1 [R=301,L]
RewriteCond %{QUERY_STRING} (?:^|&)wordfence_lh=
RewriteRule ^ /404.php? [R=301,L]
ErrorDocument 404 /404.php
RewriteCond %{QUERY_STRING} (?:^|&)wordfence_lh=
RewriteRule ^ - [R=404,L]
RewriteCond %{QUERY_STRING} (?:^|&)wordfence_lh=
RewriteRule ^ /404.php? [L]
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/robots\.txt$
RewriteCond %{REQUEST_URI} !^/sitemap\.xml$
RewriteRule (.*) https://1.domain.com/$1 [R=302,L]
RewriteEngine On
RewriteRule ^(robots\.txt|sitemap\.xml)$ - [L]
RewriteRule (.*) https://1.domain.com/$1 [R=302,L]
RewriteCond %{HTTP_HOST} ^old-site\.ru$ [NC]
RewriteRule ^(.*)$ http://www.new-site.ru/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(?:www\.|)(.+)\.old-site\.ru$ [NC]
RewriteRule ^(.*)$ http://%1.new-site.ru/$1 [R=301,L]
#
old-site.ru -> www.new-site.ru
www.old-site.ru -> www.new-site.ru
one.old-site.ru -> one.new-site.ru
www.one.old-site.ru -> one.new-site.ru
two.old-site.ru -> two.new-site.ru
www.two.old-site.ru -> two.new-site.ru
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteCond %{HTTP_HOST} ^(?>www\.|)(domain\.com)$ [NC]
RewriteRule ^(.*)$ https://www.%1/$1 [R=301,L]
RewriteCond %{HTTPS} !on
RewriteCond %{HTTP_HOST} ^(?>www\.|)(.+\.domain\.com)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteRule ^([^/]+\.(jpe?g|png|gif))$ /wp-content/uploads/2020/01/$1 [R=301,L]
Rewrite ^/([^/]+\.(jpe?g|png|gif))$ /wp-content/uploads/2020/01/$1 permanent;
RewriteEngine on
RewriteCond $1 !^ua$
RewriteRule ^([^.]+?)/?$ /$1.html [R=301,L]
RewriteEngine On
RewriteCond %{THE_REQUEST} ^\S+\s+/public(\S+)
RewriteRule ^ %1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php?$0 [L,QSA]
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/folder1/
RewriteCond %{REQUEST_URI} !^/script\.php
RewriteRule ^(.*)$ /folder1/$1 [L]