I am using redis cache in my server, so the URL rewrite to cdn.mydomain.com cannot done by plugins.
I had add sub_filter rewrite from www.mydomain.com to cdn.mydomain.com in /wp-content/uploads.
If I want to rewrite all CSS and JS files only in /wp-includes/ and /wp-content/plugins
What should I add to my nginx domain config?
Thanks. Sorry for my bad English.