Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Rules for Multisite Sub-directory install
- # For sub-directory redirects
- # Only one would apply
- # If two needed to be applied, it'd throw a 404
- if (!-e $request_filename) {
- # rewrite ^/[_0-9a-zA-Z-]+(/wp-(content|admin|includes).*) $1 break;
- # rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 break;
- ## From https://gist.github.com/evansolomon/2274120
- rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;
- rewrite ^/[_0-9a-zA-Z-]+.*(/wp-admin/.*\.php)$ $1 last;
- rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement