Header add Link "</lcp.webp>;rel=preload;as=image" env=!RES_PUSHED
Header add Set-Cookie "res_pushed=true; Max-Age=1200; Path=/" env=!RES_PUSHED
SetEnvIf Request_URI "^(?!/$|/index\.php$)" RES_PUSHED=1
env=!
и (?!...)
Header add Link "</lcp.webp>;rel=preload;as=image" env=RES_PUSHED
Header add Set-Cookie "res_pushed=true; Max-Age=1200; Path=/" env=RES_PUSHED
SetEnvIf Request_URI "^(/|/index\.php)$" RES_PUSHED=1
/
/
перед wp-content
location ~* "^(?<path>/wp-content.+)\.(png|jpeg|jpg)$"
RewriteEngine On
RewriteCond %{THE_REQUEST} /([^?]+)%2F([^?\s]*) [NC]
RewriteRule ^ https://yacht-arenda.ru/%1/%2 [R=301,L,NE]
RewriteEngine On
RewriteRule ^(.+)%2F(.*) https://yacht-arenda.ru/$1/$2 [R=301,L,NC,NE]
RedirectMatch ^/article[0-9]+ https://ritual-moskva.ru/crematoria/nikolo-arkhangelskiy-krematoriy/
^\h+(\S+)[^\n]+
$1
#[^\n]+
^\S+\h+(\S+)[^\n]+
$1
location /example {
try_files $uri @backend;
}
location @backend {
proxy_read_timeout 5s;
proxy_connect_timeout 5s;
proxy_send_timeout 5s;
rewrite ^ /index.php/exl break;
proxy_pass http://backend;
}
location /example {
proxy_read_timeout 5s;
proxy_connect_timeout 5s;
proxy_send_timeout 5s;
rewrite ^ /index.php/exl break;
proxy_pass http://backend;
}
RewriteCond %{QUERY_STRING} (?:^|&)p=(\d+)(?:$|&)
RewriteRule ^ /index.php/%1? [L,R]
RewriteCond %{REQUEST_URI} ^(.*)/(2\d{3})(-.*)$
RewriteCond %{TIME_YEAR}_%2 !^(\d+)_\1$
RewriteRule ^ https://%{HTTP_HOST}%1/%{TIME_YEAR}%3 [R=301,L]
%{TIME_YEAR} -gt $2
RewriteCond expr "%{REQUEST_URI} =~ m#^(.*)/(2[0-9]{3})(-.*)$# && %{TIME_YEAR} -gt $2"
RewriteRule ^ https://%{HTTP_HOST}%1/%{TIME_YEAR}%3 [R=301,L]
Options -Indexes
ErrorDocument 404 /404.php
<IfModule mod_php5.c>
php_flag allow_call_time_pass_reference 1
php_flag session.use_trans_sid off
#php_value display_errors 1
#php_value mbstring.internal_encoding UTF-8
</IfModule>
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} \.(gif|jpe?g|png|ico|webp)$
RewriteRule ^(.*)$ https://site.ru/$1 [R,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.php index.html
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpeg "access plus 3 day"
ExpiresByType image/gif "access plus 3 day"
</IfModule>
RewriteEngine on
RewriteCond %{THE_REQUEST} " /projekts/([^/]+)/page\.html"
RewriteRule ^ https://site.co.ua/%1 [R=301,L]
RewriteCond %{DOCUMENT_ROOT}/projekts/$1/page.html -f
RewriteRule ^([^/]+)$ /projekts/$1/page.html [L]