Guest User

htaccess multisite

a guest
Apr 27th, 2016
23
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. RewriteEngine On
  2. RewriteCond %{HTTPS} !=on
  3. RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  4.  
  5. RewriteEngine On
  6. RewriteBase /
  7. RewriteRule ^index\.php$ - [L]
  8.  
  9. # add a trailing slash to /wp-admin
  10. RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
  11.  
  12. RewriteCond %{REQUEST_FILENAME} -f [OR]
  13. RewriteCond %{REQUEST_FILENAME} -d
  14. RewriteRule ^ - [L]
  15. RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
  16. RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
  17. RewriteRule . index.php [L]
RAW Paste Data