• Resolved Mert VAROL

    (@robosayar)


    Hello. I have the HTML Minify feature enabled, but I want to block it for a few pages. How can I do that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    add this at top of your wp-config.php , next line after <?php

    $exclude_url_list = array(
                        "xxx", 
                        "yyy", 
                        "zzz" );
        
    foreach ($exclude_url_list as $exclude_url) {
      if (strpos($_SERVER['REQUEST_URI'], $exclude_url) !== FALSE) {
        define( 'LITESPEED_CONF', true );
        define( 'LITESPEED_CONF__OPTM__HTML_MIN', false);
      }
    }

    where xxx, yyy and zzz are the page URLs you want to disable HTML minify

    then purge all

    Best regards,

    Thread Starter Mert VAROL

    (@robosayar)

    @qtwrk Thank you so much. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blocking the HTML Minify feature for a few pages’ is closed to new replies.