{"id":343124,"date":"2026-07-31T15:14:47","date_gmt":"2026-07-31T15:14:47","guid":{"rendered":"https:\/\/de.wordpress.org\/plugins\/ws-domain-mapping\/"},"modified":"2026-07-31T15:14:26","modified_gmt":"2026-07-31T15:14:26","slug":"onartline-multisite-domain-mapping","status":"publish","type":"plugin","link":"https:\/\/fr.wordpress.org\/plugins\/onartline-multisite-domain-mapping\/","author":23534002,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.0.2","requires":"7.0","requires_php":"8.3","requires_plugins":null,"header_name":"Onartline Multisite Domain Mapping","header_author":"onartline","header_description":"Map domains to sites in a WordPress Multisite network. Requires PHP 8.3+ and WordPress 7.0+.","assets_banners_color":"080b18","last_updated":"2026-07-31 15:14:26","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/paypal.me\/onartline","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/onartline-multisite-domain-mapping","header_author_uri":"https:\/\/onartline.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":31,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"onartline","date":"2026-07-31 15:14:26"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3630157,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3630157,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3630157,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3630157,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3630157,"resolution":"1","location":"assets","locale":"","width":1200,"height":500},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3630157,"resolution":"2","location":"assets","locale":"","width":1200,"height":500},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3630157,"resolution":"3","location":"assets","locale":"","width":1200,"height":500}},"screenshots":{"1":"Add Domain \u2013 form for creating new domain mappings","2":"Domain Mapping Overview \u2013 manage all mapped domains","3":"Domain Mapping Settings \u2013 HTTPS, redirects and DNS information"}},"plugin_section":[],"plugin_tags":[152562,24442,441,325],"plugin_category":[51],"plugin_contributors":[274058],"plugin_business_model":[],"class_list":["post-343124","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-domain","plugin_tags-domain-mapping","plugin_tags-multisite","plugin_tags-network","plugin_category-multisite","plugin_contributors-onartline","plugin_committers-onartline"],"banners":{"banner":"https:\/\/ps.w.org\/onartline-multisite-domain-mapping\/assets\/banner-772x250.png?rev=3630157","banner_2x":"https:\/\/ps.w.org\/onartline-multisite-domain-mapping\/assets\/banner-1544x500.png?rev=3630157","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/onartline-multisite-domain-mapping\/assets\/icon-128x128.png?rev=3630157","icon_2x":"https:\/\/ps.w.org\/onartline-multisite-domain-mapping\/assets\/icon-256x256.png?rev=3630157","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/onartline-multisite-domain-mapping\/assets\/screenshot-1.png?rev=3630157","caption":"Add Domain \u2013 form for creating new domain mappings"},{"src":"https:\/\/ps.w.org\/onartline-multisite-domain-mapping\/assets\/screenshot-2.png?rev=3630157","caption":"Domain Mapping Overview \u2013 manage all mapped domains"},{"src":"https:\/\/ps.w.org\/onartline-multisite-domain-mapping\/assets\/screenshot-3.png?rev=3630157","caption":"Domain Mapping Settings \u2013 HTTPS, redirects and DNS information"}],"raw_content":"<!--section=description-->\n<p>Onartline Multisite Domain Mapping allows you to map any domain to a site in your WordPress Multisite network. It is lightweight, easy to configure, and designed for both beginners and experienced administrators.<\/p>\n\n<p><strong>Features:<\/strong>\n- Map multiple domains to any site in your network\n- Set a primary domain with automatic redirect\n- Force HTTPS per domain or globally\n- 301-redirect support for non-primary domains\n- DNS information display for site administrators\n- Site-level domain management (optional, controlled by Super Admin)<\/p>\n\n<p><strong>Requirements:<\/strong>\n- PHP 8.3 or higher\n- WordPress 7.0 or higher\n- WordPress Multisite installation<\/p>\n\n<!--section=installation-->\n<p><strong>Important \u2013 Please Read Before Installing<\/strong><\/p>\n\n<p>This plugin is recommended for <strong>new WordPress Multisite network installations<\/strong>.<\/p>\n\n<p>Installing Onartline Multisite Domain Mapping on an <strong>already existing, active Multisite network is not recommended<\/strong> and is done entirely at your own risk. It may interfere with existing domain configurations, redirects, or other plugins that handle similar functionality.<\/p>\n\n<p>If you already run a Multisite network and want to use this plugin, it is strongly recommended to set up a <strong>fresh, new Multisite installation<\/strong> first, and then <strong>migrate or import your existing content and data<\/strong> into that new installation \u2013 rather than adding this plugin to your current, active network.<\/p>\n\n<h4>1. Upload the Plugin<\/h4>\n\n<p>Upload the <code>onartline-multisite-domain-mapping<\/code> folder to <code>\/wp-content\/plugins\/<\/code> or install it directly via the WordPress Network Admin under <strong>Plugins \u2192 Add New<\/strong>.<\/p>\n\n<h4>2. Activate the Plugin<\/h4>\n\n<p>Activate the plugin via <strong>Network Admin \u2192 Plugins \u2192 Network Activate<\/strong>.<\/p>\n\n<h4>3. Set Up sunrise.php<\/h4>\n\n<p>Onartline Multisite Domain Mapping requires <code>sunrise.php<\/code> to be loaded before WordPress initializes.<\/p>\n\n<p><strong>Automatic installation:<\/strong>\nIf <code>wp-content\/<\/code> is writable, the plugin copies <code>sunrise.php<\/code> automatically on activation. You will see a success notice in the Network Admin.<\/p>\n\n<p><strong>Manual installation:<\/strong>\nIf the automatic copy fails, copy <code>sunrise.php<\/code> manually:<\/p>\n\n<ol>\n<li>Copy <code>sunrise.php<\/code> from the plugin folder to <code>\/wp-content\/sunrise.php<\/code><\/li>\n<li><p>Add the following line to your <code>wp-config.php<\/code> \u2013 directly before <code>require_once ABSPATH . 'wp-settings.php';<\/code>:<\/p>\n\n<p>define( 'SUNRISE', true );<\/p><\/li>\n<\/ol>\n\n<h4>4. Configure wp-config.php<\/h4>\n\n<p>Make sure the following line is present in your <code>wp-config.php<\/code>:<\/p>\n\n<pre><code>define( 'SUNRISE', true );\n<\/code><\/pre>\n\n<h4>5. \u26a0\ufe0f Plesk Users \u2013 Disable \"Preferred Domain\"<\/h4>\n\n<p>If your server runs Plesk, you <strong>must<\/strong> disable the \"Preferred Domain\" setting for each domain you want to map. Otherwise Plesk will intercept the redirect before WordPress can handle it, causing redirect loops or broken mappings.<\/p>\n\n<ol>\n<li>Log in to Plesk<\/li>\n<li>Go to <strong>Websites &amp; Domains \u2192 your domain \u2192 Hosting Settings<\/strong><\/li>\n<li>Set <strong>Preferred Domain<\/strong> to <strong>None<\/strong><\/li>\n<li>Save the settings<\/li>\n<\/ol>\n\n<h4>6. Add Your First Domain Mapping<\/h4>\n\n<ol>\n<li>Go to <strong>Network Admin \u2192 Domain Mapping \u2192 Add Domain<\/strong><\/li>\n<li>Select the target site<\/li>\n<li>Enter the domain (without <code>http:\/\/<\/code> or <code>https:\/\/<\/code>)<\/li>\n<li>Optionally set it as Primary Domain and enable HTTPS<\/li>\n<li>Save<\/li>\n<\/ol>\n\n<h4>7. Configure DNS<\/h4>\n\n<p>Point your domain to your server by setting the following DNS records:<\/p>\n\n<ul>\n<li><strong>A Record<\/strong> \u2013 Name: <code>@<\/code> \u2013 Value: Your server IP address<\/li>\n<li><strong>CNAME Record<\/strong> \u2013 Name: <code>www<\/code> \u2013 Value: Your primary domain or server CNAME<\/li>\n<\/ul>\n\n<p>The required values are displayed in <strong>Network Admin \u2192 Domain Mapping \u2192 Settings<\/strong>.<\/p>\n\n<h4>8. Uninstallation<\/h4>\n\n<p>When you deactivate and delete Onartline Multisite Domain Mapping via <strong>Network Admin \u2192 Plugins<\/strong>, the plugin automatically removes:<\/p>\n\n<ul>\n<li>The plugin files<\/li>\n<li>The <code>sunrise.php<\/code> file from <code>\/wp-content\/<\/code><\/li>\n<li>The database tables (only if \"Delete data on uninstall\" was enabled in the plugin settings)<\/li>\n<\/ul>\n\n<p><strong>Important \u2013 Manual step required<\/strong><\/p>\n\n<p>The plugin <strong>cannot automatically remove<\/strong> the following line from your <code>wp-config.php<\/code>:<\/p>\n\n<pre><code>define( 'SUNRISE', true );\n<\/code><\/pre>\n\n<p>This line was added manually during installation and must also be <strong>removed manually<\/strong> after uninstalling the plugin. If this line remains in <code>wp-config.php<\/code> after <code>sunrise.php<\/code> has been deleted, WordPress will try to load a file that no longer exists, resulting in warnings such as:<\/p>\n\n<pre><code>Warning: include_once(...\/wp-content\/sunrise.php): Failed to open stream: No such file or directory\n<\/code><\/pre>\n\n<p>and potentially <code>headers already sent<\/code> errors on the login page or elsewhere.<\/p>\n\n<p><strong>To fix this:<\/strong> Open your <code>wp-config.php<\/code> and remove (or comment out) the line <code>define( 'SUNRISE', true );<\/code>, then save the file.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"can%20i%20install%20this%20plugin%20on%20an%20existing%2C%20active%20multisite%20network%3F\"><h3>Can I install this plugin on an existing, active Multisite network?<\/h3><\/dt>\n<dd><p>This is not recommended and would be done entirely at your own risk. Onartline Multisite Domain Mapping is designed for new Multisite installations. If you already run an active Multisite network, it is strongly recommended to set up a fresh installation first and migrate your existing content into it, rather than adding this plugin to your current network. Please see the note at the beginning of the <strong>Installation<\/strong> section for details and our recommended approach.<\/p><\/dd>\n<dt id=\"the%20domain%20redirects%20in%20a%20loop%20%E2%80%93%20what%20should%20i%20do%3F\"><h3>The domain redirects in a loop \u2013 what should I do?<\/h3><\/dt>\n<dd><p>Check if Plesk \"Preferred Domain\" is set. Set it to \"None\". Also verify that <code>define( 'SUNRISE', true );<\/code> is present in <code>wp-config.php<\/code>.<\/p>\n\n<p>If you are using the plugin's 301-redirect feature, check the hosting settings for the specific domain (e.g. in Plesk, cPanel, or other hosting panels) and disable any existing redirect rules there if necessary.<\/p>\n\n<p>If 301 redirects are already configured at the hosting level for that domain and you want to keep them, disable the 301-redirect option in the plugin settings instead \u2013 otherwise a redirect loop will occur.<\/p><\/dd>\n<dt id=\"sunrise.php%20was%20not%20copied%20automatically%20%E2%80%93%20what%20now%3F\"><h3>sunrise.php was not copied automatically \u2013 what now?<\/h3><\/dt>\n<dd><p>Copy <code>sunrise.php<\/code> manually from the plugin folder to <code>\/wp-content\/sunrise.php<\/code> and add <code>define( 'SUNRISE', true );<\/code> to your <code>wp-config.php<\/code>.<\/p><\/dd>\n<dt id=\"the%20plugin%20is%20not%20working%20on%20my%20website%20%E2%80%93%20why%3F\"><h3>The plugin is not working on my Website \u2013 why?<\/h3><\/dt>\n<dd><p>Onartline Multisite Domain Mapping requires a WordPress Multisite installation and PHP 8.3+. Single-site installations are not supported.<\/p><\/dd>\n<dt id=\"can%20site%20administrators%20manage%20their%20own%20domains%3F\"><h3>Can site administrators manage their own domains?<\/h3><\/dt>\n<dd><p>Yes \u2013 the Super Admin can enable this under <strong>Network Admin \u2192 Domain Mapping \u2192 Settings \u2192 Site-Admin Domain Mapping<\/strong>.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20support%20automatic%20updates%3F\"><h3>Does the plugin support automatic updates?<\/h3><\/dt>\n<dd><p>Yes \u2013 once published on the WordPress plugin repository, automatic updates are fully supported.<\/p><\/dd>\n<dt id=\"i%20uninstalled%20the%20plugin%2C%20but%20now%20i%20see%20errors%20about%20sunrise.php%20or%20%22headers%20already%20sent%22%20%E2%80%93%20what%20happened%3F\"><h3>I uninstalled the plugin, but now I see errors about sunrise.php or \"headers already sent\" \u2013 what happened?<\/h3><\/dt>\n<dd><p>This happens if the line <code>define( 'SUNRISE', true );<\/code> was not removed from <code>wp-config.php<\/code> after uninstalling the plugin. Since <code>sunrise.php<\/code> no longer exists after uninstallation, WordPress fails when trying to load it. Simply remove that line from <code>wp-config.php<\/code> to resolve the issue.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Map custom domains to sites in a WordPress network.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/343124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=343124"}],"author":[{"embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/onartline"}],"wp:attachment":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=343124"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=343124"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=343124"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=343124"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=343124"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=343124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}