RewriteEngine on
RewriteCond %{HTTP_REFERER} !^https?://ireenamyha\.myjino\.ru/videovier\.php
RewriteRule \.mp4$ - [F]
AllowOverride All
в настройках VirtualHost.RewriteRule ^(.*)$ /index.php?action=$1 [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php?action=$1 [QSA,L]
RewriteCond %{HTTP_HOST} ^(?:www\.)?domain\.ru$ [NC]
RewriteRule ^(spb|msk|rostov)/(.*) http://$1.domain.ru/$2 [R=301,L]
RewriteCond %{HTTP_HOST} ^(?:www\.)?domain\.ru$ [NC]
RewriteCond %{REQUEST_URI} ^/(msk)/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/(spb)/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/(rostov)/(.*)$
RewriteRule ^ http://%1.domain.ru/%2 [R=301,L]
нужно https://site/old переадресовать на https://site/new
RewriteRule ^old$ https://site/new? [R=301,L]
RedirectMatch 403 config\.
RedirectMatch 403 ^/(?!favicons/browserconfig\.xml).*config\.
$str = preg_replace('#<img[^>]*\ssrc="[^"]*knopka\.jpg"[^>]*>#i', '', $str);
Order Deny, Allow
Order Deny,Allow
$url = '/internal_redirect/http://domain.com/?test=123&test2=234';
header("X-Accel-Redirect: " . $url);
location ~ ^/internal_redirect/(?<url>.+) {
internal;
proxy_pass $url$is_args$args;
}
$str = $arrAllItem['Model'];
$str = preg_replace(
'#[A-Z][-/.,+*()\d]*\K[А-ЯЁ]+|[А-ЯЁ][-/.,+*()\d]*\K[A-Z]+#iu',
'<b style="color: blue;">$0</b>',
$str
);
echo $str;
$str = $arrAllItem['Model'];
$str = preg_replace(
'#(?>\K[A-Z]+()|\K[А-ЯЁ]+()|[-/.,+*()\d]+)+?\1\2#iu',
'<b style="color: blue;">$0</b>',
$str
);
echo $str;