{"id":20406688,"url":"https://github.com/xwp/wp-multisite-subdirectory-nginx","last_synced_at":"2025-08-21T14:11:42.055Z","repository":{"id":66346546,"uuid":"370475728","full_name":"xwp/wp-multisite-subdirectory-nginx","owner":"xwp","description":"Proof of concept of a WP subdirectory multisite in a subdirectory.","archived":false,"fork":false,"pushed_at":"2021-05-24T20:24:38.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-30T13:03:38.787Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/xwp.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":"2021-05-24T20:23:22.000Z","updated_at":"2024-03-19T01:55:02.000Z","dependencies_parsed_at":"2023-02-21T23:46:35.347Z","dependency_job_id":null,"html_url":"https://github.com/xwp/wp-multisite-subdirectory-nginx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xwp/wp-multisite-subdirectory-nginx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fwp-multisite-subdirectory-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fwp-multisite-subdirectory-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fwp-multisite-subdirectory-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fwp-multisite-subdirectory-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xwp","download_url":"https://codeload.github.com/xwp/wp-multisite-subdirectory-nginx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fwp-multisite-subdirectory-nginx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271493232,"owners_count":24769117,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-15T05:18:45.783Z","updated_at":"2025-08-21T14:11:42.032Z","avatar_url":"https://github.com/xwp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Subdirectory Multisite in a Subdirectory\n\nA proof-of-concept for WordPress subdirectory multisite in a subdirectory of the web root:\n\n- Web server root at `./web`.\n- WordPress added as a Composer dependency at `./web/wp`.\n- WordPress multisite configured as subdirectory install.\n\nSee [`nginx.conf`](nginx.conf) for the relevant Nginx configuration and specifically the rewrite rules.\n\n\n## Requirements\n\n- Docker\n- PHP and Composer\n\n\n## Setup\n\n1. Install Composer dependencies:\n\n        composer install\n\n2. Start the server environment:\n\n        composer start\n\n3. Setup the WP sub-directory network:\n\n        composer setup\n\nVisit the environment at [subdir.wpenv.net](http://subdir.wpenv.net) or [subdir.wpenv.net:8033](http://subdir.wpenv.net:8033) to view PHPMyAdmin.\n\nLogin at [subdir.wpenv.net/wp-login.php](http://subdir.wpenv.net/wp-login.php) using `admin` as username and `password` as password.\n\nCreate a new site on the network such as `subdir.wpenv.net/example`:\n\n    composer cli -- wp site create --slug=example\n\nand visit its admin area at [subdir.wpenv.net/example/wp-admin/](http://subdir.wpenv.net/example/wp-admin/) while the site is available at [subdir.wpenv.net/example/](http://subdir.wpenv.net/example/).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxwp%2Fwp-multisite-subdirectory-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxwp%2Fwp-multisite-subdirectory-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxwp%2Fwp-multisite-subdirectory-nginx/lists"}