PHPackages                             swennet/wp-multisite-same-level-subdomains - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. swennet/wp-multisite-same-level-subdomains

ActiveWordpress-muplugin

swennet/wp-multisite-same-level-subdomains
==========================================

This WordPress multisite plugin allows you to create subsites under the same subdomain depth as the main site.

0559PHP

Since Aug 4Pushed 3y agoCompare

[ Source](https://github.com/Swennet/wp-multisite-same-level-subdomains)[ Packagist](https://packagist.org/packages/swennet/wp-multisite-same-level-subdomains)[ RSS](/packages/swennet-wp-multisite-same-level-subdomains/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![geniem-github-banner](https://cloud.githubusercontent.com/assets/5691777/14319886/9ae46166-fc1b-11e5-9630-d60aa3dc4f9e.png)](https://cloud.githubusercontent.com/assets/5691777/14319886/9ae46166-fc1b-11e5-9630-d60aa3dc4f9e.png)

WP Plugin: Same level subdomains for multisites
===============================================

[](#wp-plugin-same-level-subdomains-for-multisites)

[![Latest Stable Version](https://camo.githubusercontent.com/500f5240e3c2af24c685e676c8608d773e785e6ca264590644bfd8b22d1e4945/68747470733a2f2f706f7365722e707567782e6f72672f64657667656e69656d2f77702d6d756c7469736974652d73616d652d6c6576656c2d737562646f6d61696e732f762f737461626c65)](https://packagist.org/packages/devgeniem/wp-multisite-same-level-subdomains) [![Total Downloads](https://camo.githubusercontent.com/cc89c71878ab625abb952261387a32cd90865b7ec9272c6bad3d482814199ec4/68747470733a2f2f706f7365722e707567782e6f72672f64657667656e69656d2f77702d6d756c7469736974652d73616d652d6c6576656c2d737562646f6d61696e732f646f776e6c6f616473)](https://packagist.org/packages/devgeniem/wp-multisite-same-level-subdomains) [![Latest Unstable Version](https://camo.githubusercontent.com/acbe25208100c578e0221643f8306da8ed4fc1bb4114d3c9236ef66ee77b954e/68747470733a2f2f706f7365722e707567782e6f72672f64657667656e69656d2f77702d6d756c7469736974652d73616d652d6c6576656c2d737562646f6d61696e732f762f756e737461626c65)](https://packagist.org/packages/devgeniem/wp-multisite-same-level-subdomains) [![License](https://camo.githubusercontent.com/e17efe506d5b9fb4f09ba27cf38d516a13a34c4ce2450890940c1ec436a90462/68747470733a2f2f706f7365722e707567782e6f72672f64657667656e69656d2f77702d6d756c7469736974652d73616d652d6c6576656c2d737562646f6d61696e732f6c6963656e7365)](https://packagist.org/packages/devgeniem/wp-multisite-same-level-subdomains)

This WordPress multisite plugin allows you to create subsites under the same subdomain depth as the main site.

Example use case
----------------

[](#example-use-case)

We needed to create subdomain multisite which uses only subdomains under `*.client.com` and nothing else. In this case `client.com` domain was simultaneously used elsewhere for non-WordPress site so that couldn't be the domain of the main site.

We created this plugin in order to use `admin.client.com` as the main site and `site1.client.com`, `site2.client.com` for the subsites respectively.

Installation
------------

[](#installation)

```
$ composer require devgeniem/wp-multisite-same-level-subdomains
```

Configuration
-------------

[](#configuration)

We recommend installing this plugin with composer or dropping it the plugin directory into your mu-plugins directory.

Then create a wp-content/sunrise.php file with the following:

```
