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]
$uri/
location / {
try_files $uri /index.php?$query_string;
}
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
let re = new RegExp("([?&]" + variable + "=)[^&]*");
const result = url.replace(re, "$1" + newData);
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]
var str = `asdffsafd sdfsf, 7 sdf<br>asdfsfaf С.Я.afdsdfaf "asdf asfdasfsaf"<br>
"La <br> lala," "A fdfdfd, А fdfdfd<br>
fdff df dfdfdf dfdfdf, "<br> adffsdf asdfdsfsadf asdfdf adfadsff`;
var changeDoubleQuotes = function (str) {
return str.replace(/"([\s\S]*?)"/g, '«$1»');
};
console.log(changeDoubleQuotes(str));
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]