• Resolved metrosuperstar

    (@metrosuperstar)


    My websites are all hosted on a web server that uses LiteSpeed so naturally, I chose to use this as my caching plugin. All of my websites also use the FREE plan at Cloudflare, and they are all built using Divi theme.

    Question 1: Can I leave all settings to their installation defaults?

    Also, I’ve noticed in the Advanced View there is a toggle for Cloudflare but by default it is set to OFF.

    Question 2: Not sure if the CDN toggle should be turned ON for the free Cloudflare plan as apparently it’s not a real CDN but more of a proxy? Documentation seems to say No.

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

    (@qtwrk)

    Hi,

    Q1, yes , you can leave it as default if you wish.

    Q2, if you are on CF, then CDN option should be off, technically CF is CDN , just a different type of CDN.

    Default is off because it requires you to input your CF data , which is no way to obtain it by default , as you have to manually input these datas , so naturally , it’s OFF

    Please let us know if you have any further questions.

    Best regards,

    Thread Starter metrosuperstar

    (@metrosuperstar)

    Thanks for your response. I’m investigating why GMetrix is giving my sites a F grade for “Avoid landing page redirects” and I’m hoping there is something I can adjust in LiteSpeed Cache to fix this issue?

    GTMetrix is basically saying
    Avoid landing page redirects for the following chain of redirected URLs.

    https://mydomain.com/
    https://mydomain.com/
    https://www.mydomain.com/

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    It’s because you have to many redirect

    in your case , from HTTP to HTTPS , and then from non-www to www redirect.

    try combine them into single redirect.

    try with this rewrite rule.

    RewriteEngine On
    RewriteCond %{HTTPS} off [OR] 
    RewriteCond %{HTTP_HOST} !^www. 
    RewriteRule ^(.*)$ https://www.you-domain.com/$1 [R=301,L]

    and also remember to set WP URL to https://www.

    You could also , to test on your FINAL domain, so you can see the result without these redirection in place. and as long as it’s 301 redirect , google or any search engine , will use that final domain.

    Best regards,

    • This reply was modified 6 years, 6 months ago by qtwrk.
    Thread Starter metrosuperstar

    (@metrosuperstar)

    the WP URL is already set to https://www.

    do i add your code to line 1 of the htaccess file (just before # BEGIN LSCACHE) ?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Yes , but remove any other redirect rules , otherwise you may have redirect loop

    Best regards,

    Thread Starter metrosuperstar

    (@metrosuperstar)

    OMG, you just helped me solve an issue that was plaguing all my websites for weeks and nobody had been able to fix this with me!

    After dropping your code in my htaccess, I noticed the score improved from 32 to 98. But after you said to remove any other redirect rules, I went into Cloudflare and disabled “Always Use HTTPS” and my score reached a perfect 100. I then decided to remove the code you gave me from my htaccess and the score remained at 100.

    Turns out that adding thore rewrites to my htaccess wasn’t necessary after all. I just had to disable the “Always Use HTTPS” feature in Cloudflare.

    I guess if I wasn’t using CF, then they might be necessary, but for now they are not so I removed them from the htaccess to keep that file cleaner.

    Plugin Support qtwrk

    (@qtwrk)

    Glad to know ??

    Best regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘If on LiteSpeed Server (w free CF) – Can I just use default Settings?’ is closed to new replies.