• Resolved LPackman

    (@furnituresuppliesuk)


    Hello,

    I am having some issues running a local seo tool on my site, it seems unable to load products on page and the seo tool only reads the page properly when debug “disable all” is active.

    So my question is, is it possible to exclude a custom user agent from all optimizations and if so how can this be achieved please. I was thinking maybe in .htaccess but I do not know how to execute correctly, I hope you can help.

    Many thanks.

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

    (@qtwrk)

    Hi,

    you can add this , at top of your wp-config.php , right after <?php

    if (stripos($_SERVER['HTTP_USER_AGENT'],"your-user-agent")!==false  ) {
     define( 'LITESPEED_DISABLE_ALL', true )
    }

    replace your-user-agent to actual one

    Best regards,

    Thread Starter LPackman

    (@furnituresuppliesuk)

    @qtwrk

    Hey thanks for this, unfortunately though after adding snippet to wp-config.php many pages return error 500, I restarted OLS server but same error 500.

    Here is where I added the snippet. https://prnt.sc/1r4hmn4

    Best regards,

    Plugin Support qtwrk

    (@qtwrk)

    oops

    I missed a ; after define( 'LITESPEED_DISABLE_ALL', true ) , add that , it should work

    • This reply was modified 3 years, 2 months ago by qtwrk.
    Thread Starter LPackman

    (@furnituresuppliesuk)

    @qtwrk

    Looking at my screen shot I should have also spotted this ! haha..

    Thank you so much ??

    Thread Starter LPackman

    (@furnituresuppliesuk)

    Solved..

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Exclude user agent from all optimizations’ is closed to new replies.