Skip to content
Sign in
Each domain a page icon

Each domain a page

Serves a specific page or post from WordPress depending on the domain used to access your WordPress site.

Not scanned yet WordPress plugin 200 installs

Install in

No install steps yet

Follow the steps on the source page.

Easily manage a large number of landing pages or small websites from a single WordPress site.

This plugin offers an easy way to map different domains to different landing pages on your WordPress site. Now you can easily maintain a large number of small sites from a single WordPress installation.

You don’t have to set anything up, it works out of the box.

Just point a domain that you own to your WordPress installation. In WordPress, create a page for that domain. The slug should be the domain name without ‘www’ and with the .’s replaced by hyphens.

You can see it working on my own domain: wp-developer.eu, which shows a special page with slug wp-developer-eu on my joerivanveen.com blog (joerivanveen.com/blog/wp-developer-eu is the same).

Benefits:

  1. Easily reuse and maintain elements like forms on several domains at once.

  2. Bring in more traffic using landing pages for multiple domains without hassle.

  3. Favicon support for each domain, fallback from child pages to parents.

  4. Support for custom post types, e.g. FAQ posts, portfolio posts.

  5. The rest of your website keeps working as usual.

Caveats:

  • Some themes use webfonts, for them to work a couple of lines are added to your .htaccess, these are clearly marked #ruigehond007 (this is my seventh plugin).

  • If your blog is in a subfolder of the main site (e.g. my-site.com/blog) you need to take an extra step for this to work, see installation tab.

  • Not all custom post types are guaranteed to work as landing page, e.g. WooCommerce products need additional work to be able to access the main cart.

  • If you need more flexibility (and more work) there is WordPress Multisite.

I put special care in making the plugin very lightweight, you will notice it has virtually no effect on the speed of your installation.

Favicons

Switch on with_favicon on the settings page, to allow adding favicons to each landing page (and other pages and posts as well).

Supplying the correct favicon(s) is your responsibility, the plugin will not verify their validity.

As a rule of thumb I would use a small(ish) SVG for modern browsers, and a 32×32 pixel ICO file as fallback.

You may need a plugin to be able to upload ICO and SVG files, since they are blocked by default.

.htaccess

In case the plugin was not able to update your .htaccess, these are the lines for your .htaccess to make webfonts function properly, you can add them right after ‘#END WordPress’:

# BEGIN ruigehond007
<IfModule mod_headers.c>
<FilesMatch ".(eot|ttf|otf|woff|woff2)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
&#35; END ruigehond007

You may need to switch on headers module in your Apache configuration, if it is not already.

NGINX

NGINX does not process .htaccess files as standard. Best is to add the following to your nginx.conf file:

location ~* \.(eot|ttf|otf|woff|woff2)$ {
    add_header Access-Control-Allow-Origin *;
}

Alternatively you can switch on processing of .htaccess files in your nginx.conf file. In your hosting environment this may be done by disabling ‘direct delivery’ or something similar.

Written by Joobi from the project's own listing. See the source page

domainfaviconlanding pagemappingpage
30 Nov 2026
Version 1.8.3 released. Not scanned yet.

1.8.3: no more deprecation messages in php 8.5

1.8.2: fix php warning missing ‘host’ and children of child pages

1.8.1: remove superfluous message when favicons are not saved by meta box

1.8.0: accomodate page builders and add favicon per post / page

1.7.0: preserve query string and use canonical in admin environment

1.6.5: (re)allow custom post types

1.6.4: prevent title to be changed on other settings pages

1.6.3: small fixes

1.6.2: honor locale for punycode domains

1.6.1: restore php 5.6 and use of query string compatibility

1.6.0: add force-redirect option

1.5.2: remove unnecessary punycode conversion and update docs

1.5.1: reroute ajax and send cors headers for increased compatibility

1.5.0: add support for custom post types, e.g. woocommerce products

1.4.0: add support for child pages on the landing domains

1.3.6: add cartflows_step to supported post types, use utf-8 version of tag when matching for locale

1.3.5: fix admin url could be wrong if main site url is used as a slug

1.3.4: improved: less processing on other pages

1.3.3: support for intl domain names (punycode)

1.3.2: several fixes and improvements regarding the canonical cache

1.3.1: ajax url updated with the correct current domain name

1.3.0: improved stability, ajax url made relative to avoid CORS errors, added locale option

1.2.3: readme updated

1.2.2: now cleans title for targeted pages

1.2.1: added translation

1.2.0: added support for posts, fixed canonical for pages and posts

1.1.0: removed modes, added canonical options

1.0.1: changed text-domain for translations to work properly

1.0.0: fixed readme and display of .htaccess warning

0.3.0: fixed webfonts issue with .htaccess

0.2.0: added languages and .pot

0.1.0: settings page and two modes optimised

0.0.1: setup a working example / proof of concept for two modes

26 Sep 2019Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)