{"id":15481177,"url":"https://github.com/davidsword/pseudo-subdomain-network","last_synced_at":"2025-04-22T15:24:12.902Z","repository":{"id":136189537,"uuid":"180244675","full_name":"davidsword/pseudo-subdomain-network","owner":"davidsword","description":"On a WordPress Network site, using a Subdirectories (path-based) install for sub sites, this plugin adds an option to quickly Domain Map the Subdirectory slug as a subdomain.","archived":false,"fork":false,"pushed_at":"2019-05-31T18:05:02.000Z","size":345,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T16:22:57.547Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidsword.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-08T22:50:56.000Z","updated_at":"2020-11-11T06:25:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"e97e331a-72dc-468c-91de-94da841bfe82","html_url":"https://github.com/davidsword/pseudo-subdomain-network","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidsword%2Fpseudo-subdomain-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidsword%2Fpseudo-subdomain-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidsword%2Fpseudo-subdomain-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidsword%2Fpseudo-subdomain-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidsword","download_url":"https://codeload.github.com/davidsword/pseudo-subdomain-network/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250265460,"owners_count":21402105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T05:02:08.598Z","updated_at":"2025-04-22T15:24:12.886Z","avatar_url":"https://github.com/davidsword.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pseudo Subdomain Network #\n**Contributors:**      davidsword  \n**Donate link:**       https://wordpressfoundation.org/donate/  \n**Tags:**              network, multisite, subdomain, domain map, mapping  \n**Requires at least:** 5.0  \n**Tested up to:**      5.1.1  \n**Stable tag:**        1.0.0  \n**Requires PHP:**      7.1  \n**License:**           GPLv2 or later  \n**License URI:**       https://www.gnu.org/licenses/gpl-2.0.html  \n\nOn a WordPress Network site, using a Subdirectories (path-based) install for sub sites, this plugin adds an option in to quickly Domain Map the Subdirectory site as a subdomain of the network.\n\n## Description ##\n\nOn a [WordPress Network](https://codex.wordpress.org/Create_A_Network) site, using a Subdirectories (path-based) install for sub sites, this plugin adds an option in **Network » Sites » Add New Site** to quickly [Domain Map](https://wordpress.org/support/article/wordpress-multisite-domain-mapping/) the Subdirectory site as a subdomain of the network.\n\n![](screenshot-1.png)\n\nFor example, if you create the subdirectory site `example.com/siteone/`, when the new option selected, after the form is submitted and the site created, the site will be mapped to the subdomain by:\n\nSetting the `home` and `siteurl` values to `http://siteone.example.com`:\n\n```\n+-----------+-------------+----------------------------+----------+\n| option_id | option_name | option_value               | autoload |\n+-----------+-------------+----------------------------+----------+\n|         2 | home        | http://siteone.example.com | yes      |\n|         1 | siteurl     | http://siteone.example.com | yes      |\n+-----------+-------------+----------------------------+----------+\n```\n\nAnd setting the `domain` column of `wp_blogs` to `siteone.example.com` and adjusting the `path` as needed:\n\n```\n+---------+---------------------+------+\n| blog_id | domain              | path |\n+---------+---------------------+------+\n|       2 | siteone.example.com | /    |\n+---------+---------------------+------+\n```\n\n_Why_? Because some hosts do not allow WordPress networks as Subdomain installs, only Subdirectories. This plugin helps create a sort of pseudo Subdomain Network, quickly mapping the new site.\n\nThese domains will only work out-of-the box if you've set wild card sub domains, or set the subdomains A records before hand. For more information please [see this page](https://codex.wordpress.org/Create_A_Network) or contact your hosting provider.\n\n## Installation ##\n\nThe plugin should either be installed as a mu-plugin or network activated. It's a network plugin and therefore cannot be activated on individual sites on the network.\n\n1. Ensure your site is a [WordPress Network setup](https://codex.wordpress.org/Create_A_Network)\n1. The network must be a subdirectories insteall, not a subdomain install\n1. Upload `/pseudo-subdomain-network/` to `/wp-content/mu-plugins/` or `/wp-content/plugins/` directory\n1. If uploaded to the latter, activate the plugin through the 'Network » Plugins' menu in WordPress\n\n## Frequently Asked Questions ##\n\n### Is a multisite setup the same as a network? ###\n\nYes. The verbiage is interchangeable.\n\n### Does this plugin work when `SUBDOMAIN_INSTALL` is true? ###\n\nNo. This plugin only works when the network is a Subdirectories install.\n\n## Screenshots ##\n\n### 1. The field added to the `Network » Sites » Add New Site` form. ###\n![The field added to the `Network » Sites » Add New Site` form.](http://ps.w.org/pseudo-subdomain-network/assets/screenshot-1.png)\n\n\n## Changelog ##\n\n### 1.0.0 ###\n* **April 12, 2019**\n* Init release\n\n## Contributors ##\n\nThe following grunt tasks are available during development:\n\n* `grunt i18n` containing `addtextdomain` and `makepot`\n* `grunt readme` containing `wp_readme_to_markdown`\n* `grunt` run the two commands above\n\nFor tests (on a VVV setup):\n\n* `$ cd /path/to/pseudo-subdomain-network/`\n* `$ ./bin/install-wp-tests.sh phpunit root root`\n* `$ phpunit`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidsword%2Fpseudo-subdomain-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidsword%2Fpseudo-subdomain-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidsword%2Fpseudo-subdomain-network/lists"}