LS plugin rewriting and deleting .htaccess content




Wordpress LScache Plugin: LS plugin rewriting and deleting .htaccess content

Last Updated on: Wed, 15 Apr 2026 00:00:02
hi Like many I have customised my .htaccess file now i am finding that the ls cache plugin is not just editing the file for ls code ? it is also deleting content I added. This causes website issues my changes were there to fix. 1. Why is the plugin removing non ls code? 2. How to stop it from doing this?> Hi, 1. If your code was added inside of LScache marker , then it could be removed alone the way when you change LSCWP setting. 2. try add it outside of LScache marker Best regards, The code was outside of lts marker. I do not touch the code inside of ls marker but I need to clarify. If I have say Some code ## LITESPEED WP CACHE PLUGIN ? Do not edit the contents of this block! ## some code ### marker BROWSER CACHE end ### some more code XXXXXX ## LITESPEED WP CACHE PLUGIN ? Do not edit the contents of this block! ## some code YYYYYY ### marker BROWSER CACHE end ### I am finding that the XXXXX some more code is removed along with the second ls YYYYYYY code as above This is not what I expect. Can you also confirm that all of the ls code should be within a single block? Over time the plugin has added several blocks. Hi, It clearly states LITESPEED WP CACHE PLUGIN ? Do not edit the contents of this block! Please add your code OUTSIDE of this marker the first very ones should be like # BEGIN LSCACHE ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## RewriteEngine on CacheLookup on RewriteRule . - [E=Cache-Control:no-autoflush] add your code before this line. or , after it ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## # END NON_LSCACHE Best regards, Please reread my previous comment and answer the question which for clarity is Is there a single lscache block or multiple? My htaccess file has multiple lscache blocks in it. These blocks have been added by lscache. I repeat I have not edited the content of any lscache block! Hi, Its more like a one larger block which contains several small blocks # BEGIN 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 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 these should be LSCWP generated marker. Please add your code before or after them. Best regards, Ahh OK thank for the help. Hi, Im having problems with LSCWP blocking TranslatePress plugin. With LSCWP activated, we lose the translate site/page options in the wp dashboard top bar, the language switcher and the option to translate page from view page. With LSCWP deactivated (or all features disabled) translatepress works fine. Please can you help. thanks



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



Reference