munchmonster
Forum Replies Created
-
Forum: Plugins
In reply to: [Multiple Domain Mapping on Single Site] Compatibility with oxygen builder?The plugin described there does seem to work with oxygen, allowing editing a mapped page while it is mapped. The plugin described is very expensive though, the lifetime cost of transitioning all my sites to it, including the ability to use a custom favicon which I can do with the header script in your plugin, would be $999 which is unfortunately more than sites earn at the moment. For some reason a custom header script to add favicon doesn’t seem to work with Domain Mapping System. The other issue is DMS does not automatically support child pages in the free version ??
- This reply was modified 2 years, 4 months ago by munchmonster.
Forum: Plugins
In reply to: [Multiple Domain Mapping on Single Site] Compatibility with oxygen builder?Hi Matt. Yes I did actually need that mode enabled to even get the oxygen editor to appear, without it enabled it attempts to load the mapped domain. I also tried the PHP server variable option but that doesn’t appear to affect anything whether it is on or off.
Forum: Plugins
In reply to: [Multiple Domain Mapping on Single Site] Compatibility with oxygen builder?I guess a workaround to edit mapped pages and child pages with the oxygen editor is to temporarily disable this plugin or change the name of the mapped page to a non existent page, make your edits, then re-enable the plugin or change the name of the mapped page back. You should probably restrict public access to the site while doing this or else user browser might cache the page while it isn’t mapped. Or just don’t edit the live site and edit a staging version of your site.
I don’t know if this issue is with all oxygen sites or just the messy test site I made, I’ll keep doing more experimentation.
With some more investigation it looks like you can use Domain Mapping System and Multiple Domain Mapping on Single Site at the same time. So you can use just DMS for affected domains while still using this plugin for domains that still work. You can even leave the domain mapping for the affected domain in both plugins and it looks like DMS overrides this plugin for that domain.
However, DMS still has the problems I mentioned earlier. DMS also doesn’t work with setting a custom favicon for the specific page by adding the following code to the specific page’s header: https://www.ads-software.com/support/topic/a-way-to-have-custom-site-icon-for-any-pages-including-mapped-pages/
I also wonder if Domain Mapping System restarted their development after many years of no updates in response to the popularity of this plugin.
I have found a workaround. Disabling this plugin and enabling Domain Mapping System (https://www.ads-software.com/plugins/domain-mapping-system/) does fix the issue, though it’s not an ideal solution because with Domain Mapping System things like subpage mapping seem to be a premium feature (https://domainmappingsystem.com/#pricing) whereas with your plugin it’s included for free. Also with DMS the page titles don’t appear correctly, it just shows the main site tagline.
When I add
add_filter( 'redirect_canonical', '__return_false' );
to my functions.php then the debug doesn’t come up at all, it just redirects mapped.com to themain.com as if the debug plugin wasn’t even activated. When I remove that code from functions.php the debug appears again when you try to visit mapped.com.
Ah that plugin looks interesting. I tried it out and got this:
Debug WP Redirect Location https://themain.com/ Status 301 User Logged In No Backtrace ? Level 1 o File: /home/appuser/webapps/website/wp-includes/canonical.php o Line: #799 o Function: wp_redirect o Function Arguments: o array(2) { o [0]=> o string(28) "https://themain.com/" o [1]=> o int(301) o } ? Level 2 o File: /home/appuser/webapps/website/wp-includes/class-wp-hook.php o Line: #307 o Function: redirect_canonical o Function Arguments: o array(1) { o [0]=> o string(28) "https://mapped.com/" o } ? Level 3 o File: /home/appuser/webapps/website/wp-includes/class-wp-hook.php o Line: #331 o Class: WP_Hook o Object: WP_Hook o Type: -> o Function: apply_filters o Function Arguments: o array(2) { o [0]=> o NULL o [1]=> o array(1) { o [0]=> o string(0) "" o } o } ? Level 4 o File: /home/appuser/webapps/website/wp-includes/plugin.php o Line: #474 o Class: WP_Hook o Object: WP_Hook o Type: -> o Function: do_action o Function Arguments: o array(1) { o [0]=> o array(1) { o [0]=> o string(0) "" o } o } ? Level 5 o File: /home/appuser/webapps/website/wp-includes/template-loader.php o Line: #13 o Function: do_action o Function Arguments: o array(1) { o [0]=> o string(17) "template_redirect" o } ? Level 6 o File: /home/appuser/webapps/website/wp-blog-header.php o Line: #19 o Function: require_once o Function Arguments: o array(1) { o [0]=> o string(68) "/home/appuser/webapps/website/wp-includes/template-loader.php" o } ? Level 7 o File: /home/appuser/webapps/website/index.php o Line: #17 o Function: require o Function Arguments: o array(1) { o [0]=> o string(55) "/home/appuser/webapps/website/wp-blog-header.php" }
Putting that solution in my functions.php doesn’t seem to change anything.
The issue seems to be with the domain itself rather than the page, because if I map a different domain to the page the page loads fine. But there’s nothing special about the domain at all, it just points to my server like the rest of them with an A Record to the server IP.
Yes I don’t even have cache enabled for this site and all testing has been done with browser cache refreshed each time. It occurs in any browser, in private mode, and on other devices.
I can’t really imagine what is causing it for just this one mapped domain, when all the other mapped domains I have done are working fine.
Forum: Plugins
In reply to: [Multiple Domain Mapping on Single Site] Plugin not working onI’d try having the page be lombo.es/la-nomada/la-nomada instead, and map to lombo.es/la-nomada.
Oops actually I spoke too soon. It looks like all pages now show the content from one page, and that just happened to be the domain mapped page I checked. But at least it’s not just directing to the home page like it did before so something changed with time.
And testing this plugin again a week later, disabling Domain Mapping System first, and this plugin is working fine. Even better than Domain Mapping System as my custom site icons work, the actual page meta title works, and filepath for images works. My issue may have had to do with DNS or I don’t know what, but it’s working as expected. I suggest OP and anyone else who has similar troubles and gave up try again every now and then, perhaps time alone has solved the issue for him too, DNS propagation or somesuch or ghosts of old certificates still I dunno.
I’ve tried to get it to work and even reset this site up from scratch, disabled all other plugins, I just can’t figure it out. As a stop-gap I did find that the plugin “Domain Mapping System” does work about the same, so if OP really needs to get the domain mapped for now until they can work out how to get this plugin working as intended then that is an option.
Domain Mapping System won’t remap the paths for media though, and custom site icon with script in per-page header doesn’t seem to work either. And even though paths for media aren’t remapped, Lottiefiles from the same site media library still don’t work with Domain Mapping System just the same as this plugin. But it does at least seem to work for mapping the page itself and child pages of that page.
> change the original permalink slug from your top-page to something that sounds completely different than your mapped domain
That was one of the first things I tried actually.
I’ll keep playing around and see if I can figure it out. This site with problems is native nginx, but I’ve used your domain mapping plugin with another site that is native nginx without issue.
If you ever make a premium version of this plugin I think I would purchase it.
I’ve added
return false;
like in the screenshot and that doesn’t seem to change anything.return:false;
with the colon breaks the site though.