Community home location
The Community home location setting decides where your community opens on the web Since 1.3.0. It is one of the first things to choose after you install SpaceBay.
You have two choices. Either the community opens at a page address, such as example.com/community. Or it takes over the home address of the site, such as community.example.com.
Which one should I choose?
Section titled “Which one should I choose?”The setting shows two cards, At a page address and At the home address, and under them a short guide called Which one should I choose? with two bullets: own subdomain or a site that is only a community, choose the home address; community added to an existing site, choose a page address. Select a card to choose it. The table below gives more detail.
| At a page address | At the home address | |
|---|---|---|
| Example | example.com/community | community.example.com |
| Choose it when | SpaceBay is added to a website you already have, with its own home page, pages and blog. | The whole site is your community, for example on its own subdomain. |
| Your old home page | Stays as it is. | Is no longer shown. The community is the home page. |
| Default | Yes | No |
A subdomain is a prefix in front of your main web address. For example.com, the address community.example.com is a subdomain.
Option 1: at a page address
Section titled “Option 1: at a page address”This is the default. You can use any word you like: community, forum or club.
- In WordPress admin, open SpaceBay → Settings.
- Choose General in the left column.
- Find Community home location.
- Select the At a page address card.
- In the Page address field, type the word you want, for example
forum. Your community then opens atexample.com/forum. - Select Save changes at the top right.
The Page address field needs pretty permalinks. If the field is greyed out, open Settings → Permalinks in WordPress, choose any option except Plain, and save. Then come back.
Option 2: at the home address
Section titled “Option 2: at the home address”With this option, the community replaces the home page. Visitors who open community.example.com see the community straight away, with no /community/ in the address.
Before you turn it on
Section titled “Before you turn it on”Go through this list first. It takes a few minutes and avoids surprises.
- The address is ready. If you want a subdomain, set it up first. See How to set up a subdomain.
- You accept losing the old home page. The home page of the site is no longer shown while this option is on. If the same site is also an ordinary website, use option 1 instead.
- Nothing else uses a community address. The community answers addresses such as
/members/,/events/and/search/. If one of your pages, posts or plugins already uses one, rename it first. SpaceBay lists any clash. See Addresses that clash. - Caching is handled. If you use a cache plugin, a host cache or a CDN (a service that stores copies of your pages, such as Cloudflare), do not let it cache the home address or the community pages. After you change the setting, clear every cache.
Turn it on
Section titled “Turn it on”- In WordPress admin, open SpaceBay → Settings.
- Choose General in the left column.
- Find Community home location.
- Select the At the home address card.
- Select Save changes at the top right.
- If the save is refused, read the message. It lists the clashing addresses. See Addresses that clash.
- Clear every cache: your cache plugin, your host’s page cache and your CDN.
- Open the home address in a private browser window. Also try
/members/,/spaces/and/login/, and one ordinary page of your site.
What you will see after saving
Section titled “What you will see after saving”- The home address opens the community.
- The old home page is no longer shown. Your choice under Settings → Reading is not changed, and it shows again when you go back to option 1.
- Old community links keep working. Addresses that start with your Page address word (
/community/by default) are sent on to the home address, and the rest of the link is kept. This works only with pretty permalinks. - The Page address word is now used only for those old links. If your word is also a community address, for example
events, nothing is sent on, because/events/is a real community address.
Go back
Section titled “Go back”- Open SpaceBay → Settings → General.
- Under Community home location, select the At a page address card.
- Select Save changes.
- Clear every cache.
The community returns to its page address, and the home page you chose under Settings → Reading shows again. A browser remembers moved links, so a visitor may still be sent to the home address until they clear their browser cache.
How to set up a subdomain
Section titled “How to set up a subdomain”How you create a subdomain depends on your host, so check your host’s help pages for the exact clicks. In general there are two ways:
- Point the subdomain to your existing WordPress. In your hosting panel, create the subdomain, for example
community.example.com, and point it to the same WordPress install. Install SpaceBay on that site if you have not yet. - Make a fresh WordPress on the subdomain. Create the subdomain in your hosting panel, install a new WordPress on it, then install SpaceBay there. This keeps the community apart from your main site.
When the subdomain opens a WordPress site, log in to its admin and follow option 2 above.
Addresses that clash
Section titled “Addresses that clash”You cannot turn on At the home address while something else on the site already uses a community address. The save is refused, and the message lists each address. Each row shows the address, what uses it and, where there is one, an Edit link.
A clash can be:
- a published top-level page, for example a page called Events at
/events/; - a published top-level post, only when your permalinks start with
/%postname%; - the archive or base address of a custom post type;
- a rewrite rule of another plugin or of your theme. You do not need to know which plugin; SpaceBay finds them by what they register.
To fix it, rename the page or change the other plugin’s address, then save again. The community wins for its own names. While this option is on, a new top-level page named like a community address gets a number added, for example events-2.
What WordPress keeps
Section titled “What WordPress keeps”WordPress keeps wp-admin, wp-login.php, the REST API, feeds, sitemaps, robots.txt and every other page and post. Only GET and HEAD requests (plain page visits) are taken, so a form that posts to a community address still reaches WordPress.
The community answers the home address and the pages that start with spaces, members, posts, saved, events, leaderboard, tags, search, notifications, messages, account, login, signup, register and moderation. SpaceBay Pro adds secure-account, and shop only when member shops are on and the Shop page option is on.
A request for the home address with extra parts, such as /?code=abc, goes to WordPress. This keeps sign-in links and confirm links of other plugins working. These still open the community: anything starting with utm_, and fbclid, gclid, msclkid, _gl, mc_cid, mc_eid, ref and redirect_to. The community search takes over /search/term/; searches with ?s= still go to WordPress.
An export includes this setting. An import never applies it, so importing a file cannot take over another site’s home page.
Clashes that appear later
Section titled “Clashes that appear later”A clash can come after the option is on: you install a plugin, switch the theme or publish a page. SpaceBay never turns the option off by itself. It checks again and tells you.
- Site Health. Tools → Site Health has a test, SpaceBay community addresses are free. It lists the clashes, or says that none were found.
- An admin notice. Administrators see a warning on the dashboard, the Plugins screen and the SpaceBay screens, with a link to the settings. Select Dismiss to hide it. It comes back when a new clash appears.
- The settings screen. SpaceBay → Settings → General shows the current clashes.
- WP-CLI.
wp spacebay portal clashesprints the list. See WP-CLI.
SpaceBay checks when a plugin is switched on or off, when the theme or permalinks change, when a top-level page or post is published, and at least every 12 hours. The check runs in the WordPress admin, never on a page that visitors load.
Not detected: rules that WordPress builds for all addresses at once (such as the category base), a plugin that adds its rule only while a page loads, and a subsite of a subdirectory multisite at the same path.
Not supported: language plugins that put /fr/ in front of every address (Polylang or WPML in directory mode), and renaming single community addresses.
If something goes wrong
Section titled “If something goes wrong”The screen lists clashes and will not save. Rename the pages it shows, then save again. See Addresses that clash.
I still see my old home page, or a blank page. Most likely a cache holds an old copy. Clear your cache plugin, your host’s cache and your CDN, then open the home address in a private window. The community page carries a code that belongs to the member who opens it, so it must never be cached. SpaceBay sends no-cache headers, but a rule on your host or CDN can still store the page. Exclude / and the community addresses from any rule that caches the home address, for example Cloudflare “Cache Everything”, Cloudflare APO, a server-level full-page cache or Varnish.
A community page shows “Page not found”. Check that the first part of the address is one of the names listed in What WordPress keeps. Then open Settings → Permalinks in WordPress and select Save Changes.
My old home page disappeared. That is how option 2 works. Go back to option 1 to get it back.
More help: Troubleshooting and Compatibility.
For developers
Section titled “For developers”The setting is stored as portal_at_root (boolean, default off), with the address word in portal_slug. The REST route, the filters, the constant SPACEBAY_PORTAL_AT_ROOT and the WP-CLI command keep their names. See REST API, Hooks and filters and WP-CLI.