• Resolved treehuggertravel

    (@treehuggertravel)


    Hi Support,

    My host is running litespeed and therefore I have decided ditch the caching & minifying plugins to try out LS Cache.

    The host recommends editing the .htaccess file to remove the default config.
    I was happy to do this but the config now has additional lines than that shown in the instructions (post is from August 2018).

    I reached out to their support and they said it “should be fine” but recommended I ask the question here. Not great help were they!

    The extra ines in the .htaccess file are to do with minifying.
    Here are the addtional lines not shown in tutorial link below:

    ### marker MINIFY start ###
    <IfModule mod_rewrite.c>
    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]
    </IfModule>
    ### marker MINIFY end ###

    Instruction Link from host: https://support.crucial.com.au/en/knowledgebase/article/install-litespeed-cache-for-wordpress

    I hope someone can tell me if editing the .htaccess file is still necessary and is the instruction outdated?
    Thank you,
    John ??

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @treehuggertravel, this minify script is required if you are using LiteSpeed Cache JS/CSS modify function. It’s auto-generated and you should keep it on your .htaccess.

    Please do not edit the code inside ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## otherwise it might affect the functionality.

    hi guys, can somebody tell me WHERE do I find and edit .htaccess?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hosting Provider Recommends Editing .htaccess file’ is closed to new replies.