Wrox Programmer Forums
BOOK: Professional WordPress: Design and Development, 3rd Edition
This is the forum to discuss the Wrox book Professional WordPress: Design and Development, 3rd Edition by Brad Williams, David Damstra, Hal Stern; ISBN: 978-1-118-98724-7
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional WordPress: Design and Development, 3rd Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 4th, 2016, 04:06 PM
Don Don is offline
Registered User
Join Date: Jun 2016
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Domain Mapping in WP 4.5

Domain Mapping in WordPress 4.5 appears to have been absorbed into the core and is not working properly with Multisite. I've tried to get help from the WordPress forums and would like to know if it is possible to contact the authors of this book.

The WordPress MU Domain Mapping plugin referenced in the third edition of Professional WordPress: Design and Development, has not been updated in over a year. This plugin performs the domain mapping functions successfully in Multisite 4.5.2; however, it prevents the preview from loading when using Appearance -> Customize from the Dashboard.

The WordPress forum and to my knowledge the plugin's developer, has indicated the new way to map registered domain names to WordPress subdomains is by editing the: Network Admin Dashboard -> Sites -> Edit Site -> Site Address (URL) field. This procedure does indeed map registered domain names to WordPress subdomains but prevents access to the subdomain's dashboard in the following manner:
  1. When logged in as the Super Admin and clicking on the subsite's (subdomain's) dashboard link, one is sent to the WordPress Admin login screen, which fails to log one in with the following message: "ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress."

    NOTE: If one inserts: define(‘COOKIE_DOMAIN’ , ‘the-registered-mapped-domain-name’) into wp-config.php, one can login to the subdomain’s dashboard just fine; however, logging into the Super Admin Dashboard will no longer be possible! (I also tried define(‘COOKIE_DOMAIN’ , ‘*.*’) and multiple define() functions in the same wp-config.php file).

  2. When using https://subdomain.main-domain.tld/wp-login.php, one is redirected to the home page of main domain's website.

The end result of using the "accepted" method of domain mapping in Multisite 4.5.2 is essentially a complete lock out of the subdomain Dashboards. It's hard to believe something this critical wasn't completely tested, so I'm assuming there's a quick fix I haven't yet discovered.

I haven't finished chapters 8 through 10 yet but will continue to look for ideas on how to rectify this situation... in the mean time, any help would be great!

Thank you,

Last edited by Don; June 4th, 2016 at 04:09 PM..

Similar Threads
Thread Thread Starter Forum Replies Last Post
MAMP & WP Email Configuration msheaver BOOK: Professional WordPress 1 January 7th, 2016 08:31 AM
WP 3.0 updates? Oswald BOOK: Professional WordPress 5 May 29th, 2012 03:37 PM
Template match should find all elements ending in 'wp' Kenneth.Dougherty XSLT 2 November 23rd, 2009 02:16 PM
How to properly configure DNS, SMTP and domain mapping to IP? baburman Windows Server 0 May 19th, 2009 11:28 AM
Same pages for sub domain from main domain vivek_inos ASP.NET 1.0 and 1.1 Professional 1 February 13th, 2007 10:15 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.