Here to my htaccess, the only thing active is LiteSpeed ??cache.
<filesMatch ".(css|jpg|jpeg|png|gif|js|ico)$">
Header set Cache-Control "max-age=0, public"
</filesMatch>
BEGIN LSCACHE
LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block!
RewriteEngine on
CacheLookup on
RewriteRule .* - [E=Cache-Control:no-autoflush]
RewriteRule .litespeed_conf.dat - [F,L]
marker MOBILE start
RewriteCond %{HTTP_USER_AGENT} Mobile|Android|Silk/|Kindle|BlackBerry|Opera\ Mini|Opera\ Mobi [NC]
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+ismobile]
marker MOBILE end
marker CACHE RESOURCE start
RewriteRule wp-content/./[^/](responsive|css|js|dynamic|loader|fonts).php - [E=cache-control:max-age=3600]
marker CACHE RESOURCE end
marker LOGIN COOKIE start
RewriteRule .? - [E=Cache-Vary:_lscache_vary]
marker LOGIN COOKIE end
marker FAVICON start
RewriteRule favicon.ico$ - [E=cache-control:max-age=86400]
marker FAVICON end
marker DROPQS start
CacheKeyModify -qs:fbclid
CacheKeyModify -qs:gclid
CacheKeyModify -qs:utm*
CacheKeyModify -qs:_ga
marker DROPQS end
LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block!
END LSCACHE
BEGIN NON_LSCACHE
LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block!
marker BROWSER CACHE start
ExpiresActive on
ExpiresByType application/pdf A3600
ExpiresByType image/x-icon A3600
ExpiresByType image/vnd.microsoft.icon A3600
ExpiresByType image/svg+xml A3600
ExpiresByType image/jpg A3600
ExpiresByType image/jpeg A3600
ExpiresByType image/png A3600
ExpiresByType image/gif A3600
ExpiresByType image/webp A3600
ExpiresByType video/ogg A3600
ExpiresByType audio/ogg A3600
ExpiresByType video/mp4 A3600
ExpiresByType video/webm A3600
ExpiresByType text/css A3600
ExpiresByType text/javascript A3600
ExpiresByType application/javascript A3600
ExpiresByType application/x-javascript A3600
ExpiresByType application/x-font-ttf A3600
ExpiresByType application/x-font-woff A3600
ExpiresByType application/font-woff A3600
ExpiresByType application/font-woff2 A3600
ExpiresByType application/vnd.ms-fontobject A3600
ExpiresByType font/ttf A3600
ExpiresByType font/otf A3600
ExpiresByType font/woff A3600
ExpiresByType font/woff2 A3600
marker BROWSER CACHE end
LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block!
END NON_LSCACHE
BEGIN HTTPS Redirection personalizada
RewriteEngine On
RewriteRule ^tags/(.)$ /tag/$1 [R=301,NC,L] RewriteRule ^amp/tag/(.)$ /tag/$1 [R=301,NC,L]
RedirectMatch 301 ^/([^/]+)-(\d+)$ https://midomain.com/$1
END HTTPS Redirection personalizada
BEGIN WordPress
Las directivas (líneas) entre ?BEGIN WordPress? y ?END WordPress? son
generadas dinámicamente y solo deberían ser modificadas mediante filtros de WordPress.
Cualquier cambio en las directivas que hay entre esos marcadores serán sobrescritas.
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]
END WordPress
Header set Cache-Control "no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires 0
BEGIN WordPress HEADERS SECURITY ADVANCED & HSTS WP VERSION 5.0.21
Header set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
END WordPress HEADERS SECURITY ADVANCED & HSTS WP VERSION 5.0.21
Headers Security Advanced & HSTS WP 5.0.21
Header always set X-XSS-Protection "1; mode=block" Header always set X-Content-Type-Options "nosniff" Header always set Referrer-Policy "strict-origin-when-cross-origin" Header set Access-Control-Allow-Origin "null" Header set Access-Control-Allow-Methods "GET,PUT,POST,DELETE" Header set Access-Control-Allow-Headers "Content-Type, Authorization" Header set X-Content-Security-Policy "img-src *; media-src * data:;" Header always set Content-Security-Policy "upgrade-insecure-requests;" Header always set X-Frame-Options "SAMEORIGIN" Header always set Permissions-Policy "accelerometer=(), autoplay=(), camera=(), fullscreen=, geolocation=(self), gyroscope=(), microphone=(), payment=" Header set X-Permitted-Cross-Domain-Policies "none"
END Headers Security Advanced & HSTS WP
BEGIN cPanel-generated php ini directives, do not edit
Manual editing of this file may result in unexpected behavior.
To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
php_flag display_errors Off php_value max_execution_time 30 php_value max_input_time 60 php_value max_input_vars 1000 php_value memory_limit 512M php_value post_max_size 8M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php81" php_value upload_max_filesize 4M php_flag zlib.output_compression On
php_flag display_errors Off php_value max_execution_time 30 php_value max_input_time 60 php_value max_input_vars 1000 php_value memory_limit 512M php_value post_max_size 8M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php81" php_value upload_max_filesize 4M php_flag zlib.output_compression On
END cPanel-generated php ini directives, do not edit
php -- BEGIN cPanel-generated handler, do not edit
Set the “ea-php81” package as the default “PHP” programming language.
AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
php -- END cPanel-generated handler, do not edit
-
This reply was modified 1 year, 10 months ago by
antoniomanco.