I'm Probably in the Wrong Spot -but have WWW and API Goolge Maps Confusion

3 replies
Ok, here is what I have.

I got a theme for wordpress which utilizes a google maps API so one can customize the locations presented on a site.

So here is the quote from google:

For most applications we recommend that you simply register your domain name. Your key will be valid for that domain, its subdomains, all URLs on hosts in those domains, and all ports on those hosts.

For example, if you sign up for a key using ht tp:// www.mygooglemapssite.com/, your key is valid for:

* ht tp:// www.mygooglemapssite.com/
* ht tp:// www.mygooglemapssite.com/mysite/

However this key will not be valid for:

* ht tp:// mygooglemapssite.com/
* ht tp:// host1.mygooglemapssite.com/
* ht tp:// host2.mygooglemapssite.com/mysite

If as recommended you request a key for ht tp: //mygooglemapssite.com/ your key will be valid for all of the URLs listed above.

So, I'm confused which to get, lol

I have a shared hosting plan and have a butt load of sites on it. Mostly blogs.

I just did an auto install of a new one today.


In my back end directory, this is what happens. All the sites get a secondary back up added like http://newsite.oldoriginalsite.com and they are also available at http://newsite.com - but newsite.com also automatically redirects itself to www.newsite.com


With newsite.com I want to add subdomains to work with the key ie:
newer.newsite.com
- so according to google I should apply using newsite.com as my primary domain (without the www)

Correct?

But it seems too that:
all URLs on hosts in those domains, and all ports on those hosts.
This would mean this is the only key for every single site I have under this hosting program if I do it that way - right?

I want the key to just work for newsite.com and subdomain.newsite.com but not to affect anything else on the host.

does this seem possible? Or will a new hosting account be needed for each new api key I'd want?

Here is the main page where that quote came from:

FAQ - Google Maps API Family - Google Code

I didn't really see it addressed in their forum over there and though someone here might have a better understanding.

lol, I'm all confused.
#api #confusion #goolge #maps #spot #wrong #www
  • Profile picture of the author mikeonrails
    I have experience programming with the google maps API. That text is a complicated way of saying use: "http://mygooglemapssite.com/" to cover all cases. If you use the "www" version, then you can't put subdomains.

    "host" in the case refers to a URL host, not a webhost. Your API key will only work for sites with some variation of "mygooglemapssite.com" and none others.

    Your plugin is probably using the old version of the API(v2). v3 does not require that you use the API Key and you don't have to worry about domain registration. You should check to see if there is an upgraded version of the plugin.
    {{ DiscussionBoard.errors[2986601].message }}
    • Profile picture of the author Jill Carpenter
      Originally Posted by mikeonrails View Post

      "host" in the case refers to a URL host, not a webhost. Your API key will only work for sites with some variation of "mygooglemapssite.com" and none others.

      Your plugin is probably using the old version of the API(v2). v3 does not require that you use the API Key and you don't have to worry about domain registration. You should check to see if there is an upgraded version of the plugin.

      Ah, thanks.

      It's not a plugin but a key is needed to use the actual theme. It won't function without that key.

      Thanks again!
      Signature

      "May I have ten thousand marbles, please?"

      {{ DiscussionBoard.errors[2989597].message }}
      • Profile picture of the author h_al
        Technically, "www" just denotes a subdomain.
        {{ DiscussionBoard.errors[2991862].message }}

Trending Topics