Domain mapping breaks some plugin scripts and css
The solution, adding this to my wp-config.php: define( ‘PLUGINDIR’, ‘wp-app-content/plugins’ ); https://wordpress.org/support/topic/domain-mapping-breaks-some-plugin-scripts-and-css
The solution, adding this to my wp-config.php: define( ‘PLUGINDIR’, ‘wp-app-content/plugins’ ); https://wordpress.org/support/topic/domain-mapping-breaks-some-plugin-scripts-and-css
To be honest even after your Update: How may I fix the fact that the admin area preserves the original url when using the Domain Mapping plugin (the one with the sunrise.php)? I don’t quite understand whether you want to “Redirect administration pages to network’s original domain” or not. In any case, as per the … Read more
Something like this should help you. Redirect 301 /subfolder http://www.your-url.com/
Not tested…but should work. In your .htaccess file: RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?mysite.com$ RewriteRule ^(/)?$ us [L] (and yes…make a copy of your original .htaccess before you muck with it!)
Rather than manually making changes to the WP tables, I use the “WP Clone” plugin. It saves the entire blog to a zip file, then you Restore that on the new site (using WP Clone). The restore process makes any needed changes to the domain names/links/whatever, so the new site just works. You will log … Read more
You could create a router of sorts yourself, but the work has been done over at WPMU. I’ve used this before with great success! Try out Multi-Domains for WP Multisite. https://premium.wpmudev.org/project/multi-domains/
In order to fix your problem, assuming you are using Apache web server, paste this into your .htaccess (the .htaccess inside the sub-domain (my) directory): RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # add a trailing slash to /wp-admin RewriteRule ^wp-admin$ wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ – [L] … Read more
I have the same issue I got the multisite working by mapping my domain but if you do an add on domain it creates a folder for that site and breaks everything. So I can not have email attached to the domain unless I buy an email plan from godaddy are the like. Thinking buying … Read more
I was able to find the file responsible for building the URL placed in the header: wp-content/plugins/domain-mapping/classes/Domainmap/Module/Cdsso.php I was able to update line# 391 and statically set the protocol to HTTPS which for my use case works. Obliviously we would want to check if SSL is being forced or if the current URL is https … Read more
So, as a word of warning, WooCommerce doesn’t officially support multisites that draw from the same product database. Some (a lot) of extensions won’t work correctly, so just a heads up on that aspect. It sounds like a good workaround would be to install the five sites separately, and have them all connect to the … Read more