Gmaps Pro for Joomla - This web site needs a different Google Maps API key. A new key can be generated at

My Joomla site is using Gmaps pro. The owner recently wanted to change domains from to I added as a co-domain. Everything works fine except for my google maps api key, whick now gives me the error:

This web site needs a different Google Maps API key. A new key can be generated at

In my gmaps pro configuration I have added api keys for, and, but only work for the maps. I'm guessing that this is because is not the primary domain, so when the API key is sent it still appears to be coming from

Could someone a little more familiar with Google Maps api help me figure out what I need to do? The two sites are below, both are on the server.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Amar BardoliwalaCommented:

I checked source code for both of your urls. It seems that in both sites(urls) same key is used for google maps.

Following is key I found in your source code


Actually for site with url cosadocs, you should put different key(Generate new key if you have not generated it for cosadocs domain). You will need to do it dynamically depending on domain name entered by user. You will need to handle it by putting conditions to check domain and put appropriate key for the same.

Hope this helps.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
elliottbenzleAuthor Commented:
Thanks, gmaps wasn't picking up on the different urls
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.