# Recommended subdomain multisite nginx vhost configuration with new web/ layout

**URL:** https://discourse.roots.io/t/recommended-subdomain-multisite-nginx-vhost-configuration-with-new-web-layout/1429
**Category:** bedrock
**Created:** 2014-03-20T06:56:18Z
**Posts:** 17
**Showing post:** 7 of 17

## Post 7 by @etc — 2014-03-21T16:52:01Z

I see your point re: / I was trying to reconcile the following line in the htaccess that worked for me:

```
RewriteRule ^(.*\.php)$ wp/$1 [L]
```

I guess the primary thing that’s left to contend with is this line:

```
RewriteRule ^(wp-(content|admin|includes).*) wp/$1 [L]
```

Isn’t that rewrite something that any of the installations has to deal with, even if not multisite? I really apologize for my ignorance in the realm of nginx. I usually rely on htaccess files to control it all, but read in a few locations where you guys relied on nginx and put everything in the vhost configuration so you didn’t have to worry about replicating the environments and symlinking the htaccess files.

---

_[View the full topic](https://discourse.roots.io/t/recommended-subdomain-multisite-nginx-vhost-configuration-with-new-web-layout/1429)._
