RewriteEngine On RewriteCond %{HTTP_HOST} ^www.rentavto.ru$ [NC] RewriteRule ^(.*)$ https://rentavto.ru/$1 [R=301,L] RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Protocol} !=https RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^www\. [NC,OR]
RewriteCond %{HTTP:X-Forwarded-Protocol} !=https
RewriteRule ^(.*)$ https://rentavto.ru/$1 [R=301,L]
[R=301,L]
нужно перенести в начало файла.RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\. [NC,OR]
RewriteCond %{HTTP:X-Forwarded-Protocol} !=https
RewriteRule ^(.*)$ https://rentavto.ru/$1 [R=301,L]
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
map $http_referer $my_header {
default $http_referer;
"" $http_x_customheader;
~^https://www\.gstatic\.com/cast/sdk/default_receiver/1\.0/app\.html $http_x_customheader;
}
if ($secure_link = "") { return 403; }
if ($secure_link = "0") { return 410; }
map "$secure_link,$http_referer" $a {
default 0;
~^1 1;
~,https://www\.gstatic\.com/cast/sdk/default_receiver/1\.0/app\.html 1;
}
if ($a = 0) {
return 403;
}
let text = `
<div>
<div> first </div>
<div> second </div>
<div> third </div>
</div>
`
let regex = /(?<=>\s*)[^<\s][^<]+?(?=\s*<)/g
let matches = text.match(regex)
console.log(matches);
let replacement = [ 'первый', 'второй', 'третий' ]
let i = 0;
let result = text.replace(regex, () => replacement[i++])
console.log(result)
(?<!q\s*)t
работает нормально(?<!q\s*)t
(?<!q\s*)
работать не будет. RewriteRule . /index.php [L]
срабатывает раньше чем RewriteRule (.*) http://siluetsriga.lv/$1 [R=301,L]
RewriteEngine On
RewriteCond %{HTTP_HOST} cleanmagic.lv
RewriteRule (.*) http://siluetsriga.lv/$1 [R=301,L]
# BEGIN WordPress
# The directives (lines) between `BEGIN WordPress` and `END WordPress` are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Тогда нужно править настройки Nginx.