• Resolved Bloggd

    (@rameshmvp)


    Hi,

    I’ve been using Cache Enabler for over 2 months now and find very effective.

    Just wanted to know what exactly to change in your Advanced Configuration snippet if WordPress is located in a sub-directory (www.example.com/blog/), for Apache version < 2.3.9.

    Do I just have to change this line?

    SetEnvIf Request_URI "^(.*)$" SUB_PATH=/wp-content/cache/cache-enabler/

    to

    SetEnvIf Request_URI "^(.*)$" SUB_PATH=/blog/wp-content/cache/cache-enabler/

    Also, do I have to change this line too?

    RewriteBase /

    And one final question. Where should I add the code snippet (.htaccess file located in the root, or to the one in the /blog directory)

    TIA.

    https://www.ads-software.com/plugins/cache-enabler/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Correct, you just change that one line to match the path of your install.
    SetEnvIf Request_URI "^(.*)$" SUB_PATH=/blog/wp-content/cache/cache-enabler/

    Typically the advanced snippet on Apache installs will go in the .htaccess inside the sub-directory.

    Thread Starter Bloggd

    (@rameshmvp)

    Thanks Brian. I did that. Upon checking the HTTP headers, it still shows X-Cache-Handler: php. So PHP is not being bypassed by the .htaccess code. (URL) checked with KeyCDN’s Curl tool.

    Thread Starter Bloggd

    (@rameshmvp)

    Case resolved. The host seems to have upgraded Apache as of late. Applying the first .htaccess (for Apache 2.3.9 and up) seems to have fixed it. Thanks for the assist!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Advanced configuration snippet & sub directory’ is closed to new replies.