^кириллический1.XN--P1AI
сделать в нижнем регистре или добавить флаг [NC]RewriteEngine on
RewriteCond %{HTTP_HOST} ^site.ru [OR]
RewriteCond %{HTTP_HOST} ^кириллический1.XN--P1AI [OR,NC]
RewriteCond %{HTTP_HOST} ^кириллический2.XN--P1AI [NC]
RewriteRule ^(.*)$ https://mainsite.ru/$1 [R=permanent,L]
The only 100% safe things which may be done inside if in a location context are:
return ...;
rewrite ... last;
map $request_method $var {
GET 0;
HEAD 0;
POST 0;
default 1;
}
if ($var) {
return 444;
}
limit_except GET HEAD POST {
deny all;
}
map $query_string $check_query_string {
"" 0;
default 1;
}
map $request_uri $check_request_uri {
"~*(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php |sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)" 1;
default 0;
}
map $http_cookie $check_cookie {
"~*comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in" 1;
default 0;
}
map "$request_method:$check_query_string:$check_request_uri:$check_cookie" $cache_hit {
"~^POST" 0;
"~:1" 0;
default 1;
}
GET:0:0:0
GET:1:0:0
GET:0:1:0
RewriteMap lc int:tolower
server {
server_name example.com;
location /static {
return 404;
}
location / {
return 301 https://myexample.com$request_uri;
}
}
index index.php;
location = /index.php {
return 301 /;
}
/
конструкция index index.php;
выполнит внутреннее перенаправление на /index.php
после чего запрос попадёт в location = /index.php
location = / {
rewrite ^ /index.php break;
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
location = /index.php {
return 301 /;
}
nemo-enim{ipsam}volupta/tem_q.uia{voluptas}
Не валидно т.к. в перечне допустимых символов нет
-
{ut-enim_ad}-{minimaveniam}
А тут строка начинается с {заполнитель}
И ещё нужно уточнить на чём там парсер php, js, python ...