Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nowzoo/wp-domain-map
Simplified domain mapping for WordPress Networks
https://github.com/nowzoo/wp-domain-map
Last synced: 11 days ago
JSON representation
Simplified domain mapping for WordPress Networks
- Host: GitHub
- URL: https://github.com/nowzoo/wp-domain-map
- Owner: nowzoo
- License: mit
- Created: 2015-04-06T14:49:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-07T17:02:03.000Z (over 9 years ago)
- Last Synced: 2024-04-13T04:16:47.408Z (7 months ago)
- Language: PHP
- Size: 156 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NowZoo WordPress Domain Mapping
Simplified domain mapping for WordPress networks, installed via Composer.
This package is meant for WordPress installations already using Composer. If you need a "normal" WordPress plugin, that you can install without Composer, you might try [MU Domain Mapping](https://wordpress.org/plugins/wordpress-mu-domain-mapping/). We might turn this into a plugin at some point.
## Why?
I got frustrated with MU Domain Mapping -- it's too complicated for the purposes of a small network.
Some advantages of this code:
- Custom domain information is stored in one site option.
- The `home` and `siteurl` options for each blog are ignored and not changed.
- Works well with a mix of subdomain sites and sites with custom domains.
- It's independent of DNS. You don't have to tell it IP addresses or CNAMEs.## Installation
````
$ composer require nowzoo/wp-domain-map
````After installation, copy `sunrise.php` (included in the package root directory) to the `wp-content` directory.
Instantiate the admin panel by including this code somewhere (e.g in `wp-content/mu-plugins/index.php`):
````