Skip to content

Instantly share code, notes, and snippets.

@jazbek
Forked from wturnerharris/w3tc-mu.md
Last active February 8, 2018 05:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jazbek/95efb9e6c90b1ad811de to your computer and use it in GitHub Desktop.
Save jazbek/95efb9e6c90b1ad811de to your computer and use it in GitHub Desktop.

###W3TC MU-Plugins Install

  1. ####Add Nginx Rewrite Rule -> .htaccess:

    • rewrite ^/(?:[_0-9a-zA-Z-]+/)?wp-content/plugins/w3-total-cache/(.*) /wp-content/mu-plugins/plugins/w3-total-cache/$1 last;
  2. ####Add WP-Config Option -> wp-config.php:

    • define('W3TC_DIR', dirname(FILE).'/wp-content/mu-plugins/w3-total-cache');
  3. ####Add w3tc plugin -> mu-plugins/:

    • Upload entire plugin to mu-plugins/w3-total-cache/
  4. ####Add mu-plugin wrapper file -> mu-plugins/w3-total-cache.php

    • <?php require WPMU_PLUGIN_DIR.'/w3-total-cache/w3-total-cache.php';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment