HEX
Server: Apache/2.4.63 (Unix)
System: Linux cobra.beget.ru 5.10.258-0-beget-acl #1 SMP Mon Jun 8 11:35:04 UTC 2026 x86_64
User: lkbaupzr (8068)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/l/lkbaupzr/baupharm.ru/public_html/seraphinite-accelerator-2025-07-24_151202.htaccess
php_value memory_limit 2500M
php_value post_max_size 2500M
# This file was updated by Duplicator on 2024-09-17 05:39:20.
# See the original_files_ folder for the original source_site_htaccess file.
# BEGIN WordPress
# Директивы (строки) между `BEGIN WordPress` и `END WordPress`
# созданы автоматически и подлежат изменению только через фильтры WordPress.
# Сделанные вручную изменения между этими маркерами будут перезаписаны.
<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
	RewriteBase /
	RewriteRule ^index\.php$ - [L]
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule . /index.php [L]
</IfModule>

# END WordPress
# BEGIN seraphinite-accelerator
# Директивы (строки) между `BEGIN seraphinite-accelerator` и `END seraphinite-accelerator`
# созданы автоматически и подлежат изменению только через фильтры WordPress.
# Сделанные вручную изменения между этими маркерами будут перезаписаны.
<IfModule mod_mime.c>
	AddType image/avif .avif
	AddType image/webp .webp
	AddType application/font-woff2 .woff2
	AddType application/x-font-opentype .otf
</IfModule>
<IfModule mod_expires.c>
	ExpiresActive on
	ExpiresByType text/css                      "access plus 43200 minutes"
	ExpiresByType text/javascript               "access plus 43200 minutes"
	ExpiresByType application/javascript        "access plus 43200 minutes"
	ExpiresByType application/x-javascript      "access plus 43200 minutes"
	ExpiresByType font/eot                      "access plus 43200 minutes"
	ExpiresByType font/opentype                 "access plus 43200 minutes"
	ExpiresByType font/woff                     "access plus 43200 minutes"
	ExpiresByType application/vnd.ms-fontobject "access plus 43200 minutes"
	ExpiresByType application/font-woff         "access plus 43200 minutes"
	ExpiresByType application/font-woff2        "access plus 43200 minutes"
	ExpiresByType application/x-font-ttf        "access plus 43200 minutes"
	ExpiresByType application/x-font-woff       "access plus 43200 minutes"
	ExpiresByType image/vnd.microsoft.icon      "access plus 43200 minutes"
	ExpiresByType image/x-icon                  "access plus 43200 minutes"
	ExpiresByType image/bmp                     "access plus 43200 minutes"
	ExpiresByType image/gif                     "access plus 43200 minutes"
	ExpiresByType image/jpeg                    "access plus 43200 minutes"
	ExpiresByType image/png                     "access plus 43200 minutes"
	ExpiresByType image/svg+xml                 "access plus 43200 minutes"
	ExpiresByType image/avif                    "access plus 43200 minutes"
	ExpiresByType image/webp                    "access plus 43200 minutes"
	ExpiresByType audio/ogg                     "access plus 43200 minutes"
	ExpiresByType video/mp4                     "access plus 43200 minutes"
	ExpiresByType video/ogg                     "access plus 43200 minutes"
	ExpiresByType video/webm                    "access plus 43200 minutes"
</IfModule>
<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteCond %{REQUEST_URI}?%{QUERY_STRING} \.(jpe|jpg|jpeg|png|gif|bmp|webp|avif)\?(|.*\&)seraph_accel_ai=([\w\-]+)\.([\w\-]+)(\&.*$|$) [NC]
	RewriteCond "/var/www/u0333634/data/www/baupharm.ru/wp-content/cache/seraphinite-accelerator/s/%3/ai/%4.%1" -f
	RewriteRule . /wp-content/cache/seraphinite-accelerator/s/%3/ai/%4.%1?%2%5 [L,QSD]
</IfModule>
<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteCond %{THE_REQUEST} (?:\w+\s)?([^?]+\.(jpe|jpg|jpeg|png|gif|bmp|webp|avif))\?(|.*\&)seraph_accel_ai=([\w\-]+)\.([\w\-]+)(\&[^\s]*) [NC]
	RewriteCond "/var/www/u0333634/data/www/baupharm.ru/wp-content/cache/seraphinite-accelerator/s/%4/ai/%5.%2" !-f
	RewriteRule . /?seraph_accel_gi=%1&ai=%4.%5&intrnl=1&%3%6 [L,QSD,END]
</IfModule>
<IfModule mod_headers.c>
	<FilesMatch \.(jpe|jpg|jpeg|png|gif|bmp|webp|avif)$>
		Header merge Vary Accept
	</FilesMatch>
</IfModule>
<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteCond %{HTTP_ACCEPT} image\/webp
	RewriteCond %{REQUEST_FILENAME} \.(jpe|jpg|jpeg|png|gif|bmp|webp|avif)$
	RewriteCond %{REQUEST_FILENAME}.webp -f
	RewriteRule ^(.*)\.(jpe|jpg|jpeg|png|gif|bmp|webp|avif)$ $1\.$2\.webp [QSA]
</IfModule>
<IfModule mod_headers.c>
	<FilesMatch \.(jpe|jpg|jpeg|png|gif|bmp|webp|avif)\.webp$>
		Header merge Vary Accept
	</FilesMatch>
</IfModule>
<IfModule mod_deflate.c>
	<IfModule mod_filter.c>
		AddOutputFilterByType DEFLATE text/plain text/css text/javascript application/javascript application/x-javascript application/json text/html text/xml application/atom+xml application/rss+xml application/xhtml+xml application/xml text/x-component application/vnd.ms-fontobject application/x-font-ttf font/eot font/opentype image/bmp image/svg+xml image/vnd.microsoft.icon image/x-icon
	</IfModule>
</IfModule>
<IfModule mod_headers.c>
	<IfModule mod_rewrite.c>
		RewriteEngine On
		RewriteCond %{HTTP:Accept-Encoding} (^|\W)gzip(\W|$)
		RewriteCond %{REQUEST_FILENAME} \.(css|js)$
		RewriteCond %{REQUEST_FILENAME}.gz -f
		RewriteRule ^(.*)\.(css|js)$ $1\.$2\.gz [QSA]
		RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1,E=no-brotli:1]
		RewriteRule \.js\.gz$ - [T=application/javascript,E=no-gzip:1,E=no-brotli:1]
	</IfModule>
	<FilesMatch \.(js|css)\.gz$>
		Header set Content-Encoding gzip
		Header merge Vary Accept-Encoding
	</FilesMatch>
</IfModule>
# END seraphinite-accelerator


<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteCond %{HTTP_USER_AGENT} meta-externalagent [NC,OR]
	RewriteCond %{HTTP_USER_AGENT} ByteSpider [NC]
	RewriteRule ^.* - [F,L]
</IfModule>

# Блокировка IP-адресов для Apache 2.4+
<IfModule mod_authz_core.c>
  <RequireAll>
    Require all granted
    Require not ip 57.141.0.0/24
    Require not ip 31.31.196.139
  </RequireAll>
</IfModule>

# Блокировка IP-адресов для Apache 2.2 и ниже
<IfModule !mod_authz_core.c>
  Order allow,deny
  Allow from all
  Deny from 57.141.0.
  Deny from 31.31.196.139
</IfModule>
SetEnvIfNoCase User-Agent "meta-externalagent" bad_bot
<Limit GET POST HEAD> 
Order Allow,Deny 
Allow from all
Deny from env=bad_bot
</Limit>