Skip to content

Instantly share code, notes, and snippets.

@wp-networks
Forked from wturnerharris/w3tc-mu.md
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wp-networks/e5864339a21f32755262 to your computer and use it in GitHub Desktop.
Save wp-networks/e5864339a21f32755262 to your computer and use it in GitHub Desktop.

###W3TC MU-Plugins Install

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

    • RewriteRule ^wp-content/plugins/w3-total-cache(/.*|)$ /wp-content/mu-plugins/w3-total-cache$1 [L,NC]
  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