rameshmvp on "[Plugin: Cache Enabler - WordPress Cache] Advanced configuration snippet & sub directory"

خرید بک لینک

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://wordpress.org/plugins/cache-enabler/

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.

rameshmvp
Member
Posted 17 hours ago #

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.

rameshmvp
Member
Posted 11 minutes ago #

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!

WordPress ...

ما را در سایت WordPress دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 342 تاريخ: پنجشنبه 7 مرداد 1395 ساعت: 22:03

صفحه بندی