Skip to content

Instantly share code, notes, and snippets.

@jazbek
jazbek / w3tc-mu.md
Last active February 8, 2018 05:29 — forked from wturnerharris/w3tc-mu.md

###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/
<!doctype html>
<head>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #E22262; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }