title: WordPress Multisite - Static content - 404 Not Found
body: <p>I have installed a Wordpress in a Sub directory called /WordPressDemo.
  There is a domain called demo.example.com with the document root / which means that you need to enter demo.example.com/WordPressDemo to access the WordPress.</p>
  
  <p>I use nGINX what causes alot of trouble, I managed to get the basic links (e.g. permalinks) working, so the multisite itself works, the only problem is that it is requesting the static data from the wrong path.</p>
  
  <p><strong>Example:</strong></p>
  
  <p><em>It requests:</em> <a href="http://demo.example.com/WordPressDemo/MULTISITE-NAME/wp-includes/js/jquery/jquery.js?ver=1.11" rel="nofollow">http://demo.example.com/WordPressDemo/MULTISITE-NAME/wp-includes/js/jquery/jquery.js?ver=1.11</a></p>
  
  <p><em>but should request</em></p>
  
  <p><a href="http://demo.example.com/WordPressDemo/wp-includes/js/jquery/jquery.js?ver=1.11" rel="nofollow">http://demo.example.com/WordPressDemo/wp-includes/js/jquery/jquery.js?ver=1.11</a></p>
  
  <p><strong>My current nginx directives:</strong></p>
  
  <pre><code>   if (!-e $request_filename) {
              rewrite /wp-admin$ $scheme://$host$uri/ permanent;         
              rewrite ^/WordPressDemo(/[^/]+)?(/wp-.*) /WordPressDemo$2 last;      
              rewrite ^/WordPressDemo(/[^/]+)?(/.*\.php)$ /WordPressDemo$2 last;
      }
  
  
  location / {
          try_files $uri $uri/ /WordPressDemo/index.php?$args ;
  }
  
  location ~ \.php$ {
  try_files $uri /WordPressDemo/index.php;
  include        fcgi.conf;
  fastcgi_pass    127.0.0.1:9000;
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  }
  
  location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
          access_log off; log_not_found off; expires max;
  }
  </code></pre>