60 lines
2.0 KiB
ApacheConf
60 lines
2.0 KiB
ApacheConf
# BEGIN LSCACHE
|
|
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
|
|
<IfModule LiteSpeed>
|
|
RewriteEngine on
|
|
CacheLookup on
|
|
RewriteRule .* - [E=Cache-Control:no-autoflush]
|
|
RewriteRule \.litespeed_conf\.dat - [F,L]
|
|
|
|
### marker ASYNC start ###
|
|
RewriteCond %{REQUEST_URI} /wp-admin/admin-ajax\.php
|
|
RewriteCond %{QUERY_STRING} action=async_litespeed
|
|
RewriteRule .* - [E=noabort:1]
|
|
### marker ASYNC 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 FAVICON start ###
|
|
RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
|
|
### marker FAVICON end ###
|
|
|
|
### marker WEBP start ###
|
|
RewriteCond %{HTTP_ACCEPT} "image/webp"
|
|
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
|
|
RewriteCond %{HTTP_USER_AGENT} iPhone.*Version/(\d{2}).*Safari
|
|
RewriteCond %1 >13
|
|
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
|
|
### marker WEBP end ###
|
|
|
|
### marker DROPQS start ###
|
|
CacheKeyModify -qs:fbclid
|
|
CacheKeyModify -qs:gclid
|
|
CacheKeyModify -qs:utm*
|
|
CacheKeyModify -qs:_ga
|
|
### marker DROPQS end ###
|
|
|
|
</IfModule>
|
|
## 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! ##
|
|
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
|
|
# END NON_LSCACHE
|
|
|
|
# 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
|
|
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
|
RewriteBase /bib_wp/hamrokhaanpaan/
|
|
RewriteRule ^index\.php$ - [L]
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule . /bib_wp/hamrokhaanpaan/index.php [L]
|
|
</IfModule>
|
|
|
|
# END WordPress |