• Resolved kkinfy

    (@kkinfy)


    Hi,

    In the htaccess code generated by WPFC, I could see the below line.

    RewriteCond %{HTTPS} !=on

    I understand this rule matches only those URLs that are NOT https (not secure). But my site is a https website. Should I remove the above line from htacccess?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter kkinfy

    (@kkinfy)

    I have analyzed further on my doubt. Please check if my understanding is correct.

    1. WP Fastest Cache uses MOD REWRITE to serve only HTTP pages from cache.
    2. For HTTPS pages, the processing is at PHP level and not at MOD REWRITE Level.

    For curiosity sake I commented out the RewriteCond %{HTTPS} !=on on my htaccess and checked the Time To First Byte or TTFB. TTFB improved by almost 100%. (From about 1200 ms to 700 ms) .

    Hence on my websites using WP Fastest Cache I am planning to comment out RewriteCond %{HTTPS} !=on.

    Still I don’t understand the need for HTTPS pages to be bypassed at MOD REWRITE and be handled at PHP level. In future, it could be better if you remove RewriteCond %{HTTPS} !=on from htaccess provided there are no adverse effects.

    Plugin Author Emre Vona

    (@emrevona)

    Please take a look at the following tutorial for the solution.

    http://www.wpfastestcache.com/tutorial/plugin-does-not-work-after-https-redirection/

    Thread Starter kkinfy

    (@kkinfy)

    Hi, my question is not about the functioning of the cache after https redirection. The cache is working fine. What I fail to understand is how cache works properly for https pages even with the line RewriteCond %{HTTPS} !=on on mod rewrite.

    My guess (please see my second reply in this thread) is PHP handles HTTPS pages while Mod_Rewrite handles non-HTTP pages.

    Why not force Mod_Rewrite to handle both by removing the RewriteCond %{HTTPS} !=on line. You can take this as a suggestion for the next update. Because doing so has increased the TTFB (First Byte Time) for my site significantly.

    • This reply was modified 7 years, 10 months ago by kkinfy.
    Thread Starter kkinfy

    (@kkinfy)

    Sorry there was a typo in my previous reply. TTFB decreased (improved) as a result of commenting out RewriteCond %{HTTPS} !=on line.

    Plugin Author Emre Vona

    (@emrevona)

    You should not interested in the htaccess rules of wp fastest cache.
    Can you tell me the url please? let me check.

    Thread Starter kkinfy

    (@kkinfy)

    Hi,

    I have shared my URL in email to [email protected] . Kindly have a look and let me know if the functioning is fine. Please note I have commented out the line RewriteCond %{HTTPS} !=on

    • This reply was modified 7 years, 10 months ago by kkinfy.
    Thread Starter kkinfy

    (@kkinfy)

    Thanks, I got the response email. Your support is great as always. Keep up the good work.

    Plugin Author Emre Vona

    (@emrevona)

    you are welcome 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Use of RewriteCond %{HTTPS} !=on’ is closed to new replies.