Title: Multisite Landingpages
Author: Joeri van Veen
Published: <strong>2022-يىلى 30-يانۋار</strong>
Last modified: 2022-يىلى 30-ئۆكتەبىر

---

قىستۇرما ئىزدە

![](https://ps.w.org/multisite-landingpages/assets/banner-772x250.png?rev=2669227)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/multisite-landingpages/assets/icon-256x256.png?rev=2669227)

# Multisite Landingpages

 يازغۇچى [Joeri van Veen](https://profiles.wordpress.org/ruigehond/)

[چۈشۈر](https://downloads.wordpress.org/plugin/multisite-landingpages.1.2.9.zip)

 * [تەپسىلاتلار](https://ug.wordpress.org/plugins/multisite-landingpages/#description)
 * [باھالاشلار](https://ug.wordpress.org/plugins/multisite-landingpages/#reviews)
 *  [ئورنىتىش](https://ug.wordpress.org/plugins/multisite-landingpages/#installation)
 * [ئىجادىيەت](https://ug.wordpress.org/plugins/multisite-landingpages/#developers)

 [قوللاش](https://wordpress.org/support/plugin/multisite-landingpages/)

## چۈشەندۈرۈش

This plugin has been developed for and tested with a WordPress Multisite hosting
company in the U.S. They have agreed to release this plugin for free.
 You may need
some technical knowledge to set this up. It may also be that you need some specific
compatibility or functionality, please use your local programmer to adjust this 
plugin or contact me. This is the multisite version of my Each-domain-a-page plugin,
for non-multisite environments Each-domain-a-page is recommended.

#### Easy

For owners of subsites it is now easy to add landingpages to their sites for different
domain names. They simply type in any domain name they own, and then the slug they
would like to serve for that domain.
 ‘Multisite landingpages’ enforces a dns txt
record proving ownership, this can be switched off (for the entire multisite).

#### Compatibility

The plugin is specifically compatible with:
 – WPMU Domain Mapping plugin (now deprecated).–
WP Rocket caching. – Cartflows (step) post type. – Yoast SEO plugin.

## ئېكران كەسمىسى

 * [[
 * Settings screen for subsite administrators (1.2.9)

## ئورنىتىش

Put the plugin in your plugins folder and follow the below instructions. If you 
need help or customization contact me.

#### Documented working (admin)

The network administrator does not have any settings, nor do they need any.
 Of 
course, they can ‘network activate’ or deactivate and uninstall this plugin.

The plugin uses three config settings that you can put in your wp-config file.
 
define(›RUIGEHOND011_TXT_RECORD_MANDATORY‹, true); default: true; When true domains
can only be added if they contain a mandatory txt record, proving ownership. define(›
RUIGEHOND011_DOMAIN_MAPPING_IS_PRESENT‹, false); default: false; when true Multisite
Landingpages takes into account the relevant settings in the Domain Mapping plugin(
now deprecated by WPMU). define(›RUIGEHOND011_WP_ROCKET_CACHE_DIR‹, ›/path/to/dir/
wp-content/cache/wp-rocket‹); default: not present. When present, **the dir must
be valid and writable**. Multisite Landingpages will invalidate cache per domain
when it can, and warn when it can’t. When not present you must invalidate any cache
yourself when you’re done changing your settings.

This plugin can only work using the ‘sunrise’ drop in structure, so a site administrator
must do the following:
 Copy the sunrise.php file of this plugin to the wp-content
directory, or add its code to an existing sunrise.php, ensuring it does not conflict.
NOTE: currently the sunrise of domain-mapping (WPMU) is taken and this plugin is
added to ensure compatibility. Set the sunrise constant in wp-config.php, somewhere
below the multisite constants would be appropriate: define(›SUNRISE‹, true);

Multisite-landingpages creates a small table holding the domain names put in by 
subsite admins. The domain column is the primary key so queries should run fast 
even with many domains.

The following is only true if the global config ruigehond011_txt_record_mandatory
= true:
 Subsite administrators must put a TXT record in their DNS for any domain
they want to add to prove they own it. This TXT record is unique for each subsite
and installation (it uses the uuid4 functionality) and displayed to the administrator
on the settings page. If the TXT record is not present the domain will not be added.
When the TXT record is no longer found, a warning will be displayed on the settings
page next to the entry. The landing page will keep working however as long as the
domain is correctly pointed at the installation. When someone else adds the domain(
while proving ownership), the domain is assigned to that subsite, and not visible
anymore to the old subsite.

When ruigehond011_txt_record_mandatory = false admins cannot prove ownership, therefore
the transfer of a domain as described in the above paragraph is NOT possible. Domains
that are in the table cannot be added by another subsite.

For custom fonts to work the following code must be added to .htaccess:

    ```
    `
    ```

Header set Access-Control-Allow-Origin «*»

 `
 The plugin will attempt to do this and warn when failed. The lines will be clearly
marked by #ruigehond011 so you can find them in your .htaccess.

#### Documented working (subsite)

Subsite administrators get a ‘settings’ page called ‘Landingpages’ once the plugin
is active.
 At the top is displayed the TXT record containing the guid they must
add to the DNS records for the domains they want to add. (Unless this is set to 
false in wp-config.) A domain will be added when the record is found, after that
they can assign a slug, which must be of a page or a regular post type (custom post
types not supported out of the box). The plugin will match a domain name to a slug
and show the page or post of that slug then. If no match occurs, the plugin has 
no influence. If the ‘canonicals’ option is checked however the plugin will always
actively rewrite links to any of the landingpage domains of the current subsite.

#### Note about international domainnames

International domains, containing utf-8 characters, will be stored in punycode (
ascii notation). Either automatically (when available) or they must be put in as
such by the user. Upon failure a warning will be shown.

#### Note about deactivation

If a subsite administrator deactivates the plugin, its entries in the landingpages/
domains table are removed.
 On a network deactivation the table is left in the database
for the admin to prune, to conserve resources. It will be dropped on uninstall. 
On a network deactivation the options are removed for each subsite, as long as wp_is_large_network()
returns false. For large networks, the admin should cleanup the relevant options.
They are prefixed by ‘ruigehond011’.

## باھالاشلار

بۇ قىستۇرمىغا تېخى باھا يېزىلمىدى.

## تۆھپىكار ۋە ئىجادكار

«Multisite Landingpages» كودى ئوچۇق يۇمشاق دېتال. تۆۋەندىكى كىشىلەر بۇ قىستۇرمىغا
تۆھپە قوشقان.

تۆھپىكار

 *   [ Joeri van Veen ](https://profiles.wordpress.org/ruigehond/)

[«Multisite Landingpages» نى تىلىڭىزغا تەرجىمە قىلىڭ](https://translate.wordpress.org/projects/wp-plugins/multisite-landingpages)

### ئىجادىيەتكە قىزىقامسىز؟

[كودقا كۆز يۈگۈرتۈپ](https://plugins.trac.wordpress.org/browser/multisite-landingpages/)،
[SVN خەزىنە](https://plugins.svn.wordpress.org/multisite-landingpages/) تەكشۈرۈپ
ياكى [RSS](https://plugins.trac.wordpress.org/log/multisite-landingpages/?limit=100&mode=stop_on_copy&format=rss)
ئارقىلىق [ئىجادىيەت خاتىرىسى](https://plugins.trac.wordpress.org/log/multisite-landingpages/)
گە مۇشتەرى بولغىلى بولىدۇ.

## ئۆزگىرىش خاتىرىسى

1.2.9 Public release

## Meta

 *  Version **1.2.9**
 *  ئاخىرقى يېڭىلانغان ۋاقىت **4 يىل بۇرۇن**
 *  ئاكتىپ ئورنىتىش سانى **10 دىن ئاز**
 *  WordPress نەشرى ** 5.0 ياكى يۇقىرى **
 *  **6.1.10** دا سىنالغان
 *  PHP نەشرى ** 5.6 ياكى يۇقىرى **
 *  تىل
 * [English (US)](https://wordpress.org/plugins/multisite-landingpages/)
 * بەلگە
 * [domain](https://ug.wordpress.org/plugins/tags/domain/)[landing page](https://ug.wordpress.org/plugins/tags/landing-page/)
   [landingpages](https://ug.wordpress.org/plugins/tags/landingpages/)[mapping](https://ug.wordpress.org/plugins/tags/mapping/)
   [multisite](https://ug.wordpress.org/plugins/tags/multisite/)
 *  [ئالىي كۆرۈنۈش](https://ug.wordpress.org/plugins/multisite-landingpages/advanced/)

## دەرىجە

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/multisite-landingpages/reviews/#new-post)

[بارلىق ئىنكاسنى كۆرسەت](https://wordpress.org/support/plugin/multisite-landingpages/reviews/)

## تۆھپىكار

 *   [ Joeri van Veen ](https://profiles.wordpress.org/ruigehond/)

## قوللاش

چۈشەندۈرۈشىڭىز بارمۇ؟ ياردەم لازىممۇ؟

 [قوللاش مۇنبىرىنى كۆرسەت](https://wordpress.org/support/plugin/multisite-landingpages/)

## ئىئانە

بۇ قىستۇرمىنىڭ ياخشىلىنىشىنى قوللامسىز؟

 [ بۇ قىستۇرمىغا ئىئانە قىلىش ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hallo@ruigehond.nl&lc=US&item_name=Multisite+landingpages+plugin&no_note=0&cn=&currency_code=EUR&bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted)