LitSpeed adds slug to some images




Wordpress LScache Plugin: LitSpeed adds slug to some images

Last Updated on: Wed, 15 Apr 2026 00:00:02
Good day! After coming back to LiteSpeed, I noticed that some requests are not done properly. What I see now is, for example, a request with this format: https://url.com/product-slug/wp-content/themes/shopstore/assets/img/down-arrowblk.png When it should request this: https://url.com/wp-content/themes/shopstore/assets/img/down-arrowblk.png As soon as I turn LitSpeed off (Disable All Features On), it seems to work fine. Is there a setting in this plugin that adds the slug? The .htaccess looks like this: # 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 ^min/ w+ .(css|js) - [E=cache-control:no-vary] ### 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 ### ## 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 A2592000 ExpiresByType image/x-icon A2592000 ExpiresByType image/vnd.microsoft.icon A2592000 ExpiresByType image/svg+xml A2592000 ExpiresByType image/jpg A2592000 ExpiresByType image/jpeg A2592000 ExpiresByType image/png A2592000 ExpiresByType image/gif A2592000 ExpiresByType image/webp A2592000 ExpiresByType video/ogg A2592000 ExpiresByType audio/ogg A2592000 ExpiresByType video/mp4 A2592000 ExpiresByType video/webm A2592000 ExpiresByType text/css A2592000 ExpiresByType text/javascript A2592000 ExpiresByType application/javascript A2592000 ExpiresByType application/x-javascript A2592000 ExpiresByType application/x-font-ttf A2592000 ExpiresByType application/x-font-woff A2592000 ExpiresByType application/font-woff A2592000 ExpiresByType application/font-woff2 A2592000 ExpiresByType application/vnd.ms-fontobject A2592000 ExpiresByType font/ttf A2592000 ExpiresByType font/woff A2592000 ExpiresByType font/woff2 A2592000 ### marker BROWSER CACHE end ### ### marker MINIFY start ### RewriteEngine on RewriteCond % DOCUMENT_ROOT % REQUEST_URI ^(. )/min/( w+) .(css|js)$ RewriteCond %1/wp-content/cache/$2/$1.$2 -f RewriteRule min/( w+) .(css|js) wp-content/cache/$2/$1.$2 [L] ### marker MINIFY end ### ## 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. RewriteEngine On RewriteBase / RewriteRule ^index .php$ - [L] RewriteCond % REQUEST_FILENAME !-f RewriteCond % REQUEST_FILENAME !-d RewriteRule . /index.php [L] # END WordPress # BEGIN ShortPixelWebp # The directives (lines) between BEGIN ShortPixelWebp and END ShortPixelWebp are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. # END ShortPixelWebpExpand The page I need help with: https://cahocs.com/mrs-meyers-clean-day-fabric-softener-lavender-32-oz/ FYI, https://url.com/product-slug/wp-content/themes/shopstore/assets/img/down-arrowblk.png returns 404 Hi, It should not do this. Please check if you reset to default , does it work ? Best regards, I should I have copied the settings before resetting them lol So, it seems like Generating Critical CSS was the culprit. Thanks for your help!



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference