The cache is served via PHP in nginx webservers.
can you make it work with default file in site-available?
do you wanna serve it via server instead of php?
yeah that’s what I want. I am wondering how to convert this to nginx.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} !(facebookexternalhit|WhatsApp|Mediatoolkitbot)
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} !(\/){2}$
RewriteCond %{REQUEST_URI} \/$
RewriteCond %{QUERY_STRING} !.+
RewriteCond %{HTTP:Cookie} !(comment_author_|wordpress_logged_in|wp_woocommerce_session)
RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f [or]
RewriteCond /home/cutatooc/public_html/wp-content/cache/all/$1/index.html -f
RewriteRule ^(.*) "/wp-content/cache/all/$1/index.html" [L]
</IfModule>
-
This reply was modified 9 years, 4 months ago by
NUCUTA.
sorry. I did not try it on nginx.
I made a tutorial for this. this is for those who have been struggling to make wp fastest cache to work with nginx.
http://nucuta.com/wp-fastest-cache-configuration-for-nginx/
thank you so much. I think that many people search and find this tutorial via google.
-
This reply was modified 9 years, 4 months ago by
Emre Vona.
Sorry I made a slight mistake, and noticed that the contents were not cached. so I fixed that bug and republished the tutorial.Now caching works perfectly.
-
This reply was modified 9 years, 4 months ago by
NUCUTA.