已解决
发布

 
您好!看了http://www.linuxeye.com/jianzhan/Nginx-wp-super-cache.html 这个如何设置 wp Super Cache的Mod_Rewrite缓存模式 ,我想请教一个问题:如果网站是https的模式呢?目前文章的解决办法是针对http的。
谢谢!
 

2 答案

发布
管理员 2016-07-19

通用。

#1
发布

官方网站有所提示:
https://codex.wordpress.org/Nginx#WP_Super_Cache_Rules
Experimental modifications:
If you are using HTTPS, the latest development version of WP Super Cache may use a different directory structure to differentiate between HTTP and HTTPS. The ${scheme} variable will eventually become a necessary part of the path in that case. try_files line may look like below:

location / {
        try_files /wp-content/cache/supercache/$http_host/$scheme$cache_uri/index.html $uri $uri/ /index.php?$args ;
}


这个是指什么意思呢?

#2

请登录或者 注册 来提交答案