Using the Plugin on a Multisite Installation with Domain Mapping enabled

This article covers using WP Google Maps on a multisite installation with domain mapping. This documentation is current for WP Google Maps version 6.

 

Because the marker data is stored in an XML file, JavaScript requires that the XML file be located on the same server that the request for the XML file is coming from. This means that you’ll run into issues with our plugin while using domain mapping.

 

In order to overcome this, we need to allow for cross domain XML file loading via JavaScript. To do this, please add the following to your main site’s .htaccess file which can be located in the root directory of your site:


<filesMatch "\.(xml)$">
<ifModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</ifModule>
</filesMatch>

 


 

This article covers using WP Google Maps on a multisite installation with domain mapping.  If you need further assistance, feel free to post on our Support Forums or visit our Support Desk.

 

Was this article helpful to you?