Mapping a domain
WP Landing Kit lets you map any custom domain to a WordPress page, post, or other resource in just a few steps.
Within your WordPress admin, click
Domainsand thenAdd New.Enter the domain you want to map in the primary domain field provided.
Under the
Mappingstable below, expand theDomain Rootrow and select the resource type (post or page, etc.) you would like the domain to point to and then search for the resource entry to complete the root mapping.Click Add URL mapping once for each standalone path that should serve a different resource. A mapping's URL field contains only the path (for example,
offers), not query-string parameters. A mapping foroffersalso covers links such as/offers?c=...&i=..., so keep those parameters in your links and do not add a separate mapping for each query-string variation. To map one taxonomy term archive, set Action to Map to resource, choose Taxonomy term archive, then select the taxonomy and term. To map all posts within a category or taxonomy rather than mapping them individually, follow Automatically Map All Posts Within a Category. General and post-type settings make content types available but do not create individual mappings; see Custom post type settings.Query strings do not change which resource a mapping loads, and WP Landing Kit has no mapping type for WordPress search results. A search submitted on a mapped domain, such as
https://mapped.example/?s=tv, is still handled by the domain's root mapping, so it can return a 404 error instead of search results. This applies to any search form that submits to the current domain: a form with/as its action, and also the default WordPress search form and Search block, because on a mapped domain WordPress builds their address from the mapped domain.To show standard WordPress search results, use a search form that submits to your main site's homepage URL typed out in full (for example,
https://your-main-site.com/), uses theGETmethod, and keepssas the name of the search field. Visitors then see the results on your main site. Do not use a dynamic site-URL value for the action, because on a mapped domain it resolves to the mapped domain as well. WP Landing Kit cannot keep WordPress search results on the mapped domain; for that, you need a separate custom search integration that supports your domain setup.Within your hosting control panel (e.g. cPanel or other hosting admin), add your mapped domain as an
Alias.Wherever you manage your domain DNS records, add an
A-recordto the domain you just mapped with a host value of@and the IP address for your WordPress server.
Use a CNAME record only when mapping a subdomain.
Subdomains
You may use subdomains but subdomains are effectively domains in their own right and they need to be added as separate domains in WP Landing Kit. We don't currently have support for wildcards in domain names.
Check the next page for step-by-step instructions on how to map a subdomain.
