官网兼容wordpress预览文章

##nginx

    location = / {
        error_page 588 = @wordpress;
        #如果有preview参数,则返回wordpress页面
        if ($arg_preview) {
            return 588;
        }
        add_header Cache-Control "no-store";
        add_header Pragma "No-cache";
        expires -1;
        etag off;
        root /data/pentaq-weui-wap/dist;
        try_files $uri $uri/ /index.html;
    }

    location @wordpress {
        root /data/var/www/trunk/app/news;
        try_files $uri $uri/ /index.php?$args;
    }