Advertisement
dexterslab

globals/mu-dir.conf

Mar 15th, 2013
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | None | 0 0
  1. # Rules for Multisite Sub-directory install
  2.  
  3. # For sub-directory redirects
  4. # Only one would apply
  5. # If two needed to be applied, it'd throw a 404
  6. if (!-e $request_filename) {
  7. #    rewrite ^/[_0-9a-zA-Z-]+(/wp-(content|admin|includes).*) $1 break;
  8. #    rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 break;
  9. ## From https://gist.github.com/evansolomon/2274120
  10.     rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;
  11.     rewrite ^/[_0-9a-zA-Z-]+.*(/wp-admin/.*\.php)$ $1 last;
  12.     rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement