WordPress VIP site for Primary Vagrant
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

23 lines
615 B

  1. # BEGIN WordPress
  2. <IfModule mod_rewrite.c>
  3. RewriteEngine On
  4. RewriteBase /
  5. RewriteRule ^index\.php$ - [L]
  6. # add a trailing slash to /wp-admin
  7. RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
  8. RewriteRule ^wp-admin(.*) /wp/wp-admin$1 [R=301,L]
  9. RewriteRule ^wp/_static/(.*) /wp-content/mu-plugins/http-concat/ngx-http-concat.php$1 [L]
  10. RewriteCond %{REQUEST_FILENAME} -f [OR]
  11. RewriteCond %{REQUEST_FILENAME} -d
  12. RewriteRule ^ - [L]
  13. RewriteRule ^(wp-(content|admin|includes).*) /wp/$2 [L]
  14. RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ /wp/$2 [L]
  15. RewriteRule . index.php [L]
  16. </IfModule>
  17. # END WordPress