Minify didn't work if WP_PLUGIN_URL set to different domain
-
I define WP_PLUGIN_URL in wp-config.php to different domain from my WP_SITEURL.
define('WP_SITEURL', 'https://' . $_SERVER['SERVER_NAME']); define('WP_HOME', 'https://' . $_SERVER['SERVER_NAME']); define('WP_CONTENT_URL', 'https://static.example.com/wp-content'); define('WP_PLUGIN_URL', 'https://static.example.com/wp-content/plugins');
The minified CSS and javascript didn’t work for files in plugins and themes directory
- The topic ‘Minify didn't work if WP_PLUGIN_URL set to different domain’ is closed to new replies.