/^(?=.*[а-яё])(?=.*\d)[а-яё\d]+$/ui/^(?:[а-яё]()|\d())++\1\2$/ui location / {
resolver 8.8.8.8;
proxy_pass http://$arg_url;
add_header Access-Control-Allow-Origin *;
} function transform(addr) {
const regEx = /((д(ом)?|стр(оение)?|\/|-)\.?\s*|)\d+((,?\s*(к(ор(п(ус)?)?)?\.?)\s*\d+)|(\s*[а-я])|(\s*\/\s*\d+))?\s*$/;
let result = addr.replace(regEx, function(m0, m1) {
if (m1) {
return m0;
} else {
return 'д. ' + m0;
}
});
return result;
}
console.log(transform('Татарстан, г. Казань, ул. Баумана, 36')); RewriteEngine On
RewriteCond %{HTTP_HOST} old.ru
RewriteCond %{REQUEST_URI} !^/yandex_3457472в87f2рecd\.html
RewriteRule (.*) http://new.ru/ [R=301,L] RewriteRule ^games/([^/]*)RewriteRule ^games/finished/?$ index.php?do=games&t=finished [L]
RewriteRule ^games/live/?$ index.php?do=games&t=live [L]
RewriteRule ^games/shudle/?$ index.php?do=games&t=shudle [L]
RewriteRule ^games/shift/?$ index.php?do=games&t=shift [L]
RewriteRule ^games/([^/]*)/?$ index.php?do=games&date=$1 [L] Options +FollowSymLinks
DirectorySlash Off
RewriteEngine On
RewriteRule ^blog/$ /blog [R=301,L]
RewriteRule ^blog$ /blog/index.php [L] RedirectMatch 301 ^/(.*)\+$ /$1RewriteEngine On
RewriteRule ^(.*)\+$ /$1 [R=301,L] RedirectMatch 301 ^/$ http://www.1домен.com/
RedirectMatch 301 ^/внутр-страница$ http://www.2домен.com/ AddDefaultCharset UTF-8
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$ [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*)$ https://test.ru/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php