# Wordpress multisite + Bedrock - Default site gets /wp/ as base path

**URL:** https://discourse.roots.io/t/wordpress-multisite-bedrock-default-site-gets-wp-as-base-path/12380
**Category:** bedrock
**Created:** 2018-05-03T14:09:07Z
**Posts:** 4
**Showing post:** 4 of 4

## Post 4 by @cristianuibar — 2022-12-03T17:59:55Z

Hello everybody!

My first post is here just to fix this for others that might have this problem.

So the things you need to check are as follows:

1. You have proper rewrite rules. In my case, I was on NGINX and wanted a sub-folder setup so I had to use the ones in the docs here: [Bedrock: Server Configuration | Roots Documentation](https://docs.roots.io/bedrock/master/server-configuration/#nginx-configuration-for-bedrock)

you can find there all the other servers and versions there as well.

1. Check that you have configured the correct `DOMAIN_CURRENT_SITE` constant in your application.php (or via env vars as you want). I used the settings offered here: [Multisite setup?](https://discourse.roots.io/t/multisite-setup/8191)

I don’t really know why these are not in the official docs :smile: → they should be

1. And the most important, the one that caused most issues for me, is the fact that on multisite, there is no more /wp/ in the wp-admin url, because the rewrite rules handles these.

And also, most importantly, in a multisite scenario, WordPress will no longer consider the wp-config.php constants for WP\_SITEURL and WP\_HOME. So these will not overwrite the ones in the DB. This means that WordPress will use the WP\_SITEURL and WP\_HOME that he finds in the `wp_options` table. So on a clean WP Bedrock multisite install, these settings in `wp_options` will both be configured as `domain.com/wp` which will make your default site to have this `/wp` ending.

So to fix this, if you already followed points 1 and 2, and you’re still seeing the `/wp` ending for your default site, then go in your mysql and manually edit these options.

I used manual queries from command line like so:

```
update wp_options set option_value="https://domain.com" where option_id=1;
update wp_options set option_value="https://domain.com" where option_id=2;
```

In this case option\_id=1 is `siteurl` and option\_id=2 is `home`. This should be the case in all setups. Or you might use `option_name=siteurl` and `option_name=home` instead of `option_id=1` and 2 respectively.

---

_[View the full topic](https://discourse.roots.io/t/wordpress-multisite-bedrock-default-site-gets-wp-as-base-path/12380)._
