Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a KML file on a public URL like

If I put that KML file on another server, and put the new URL in the search box on Google Maps, it loads the KML into google maps.

If I put the above URL into google maps like so:

It does not load, and I get the following message:

File not found at


    Make sure the URL is spelled correctly.
    Make sure the file exists.

Therefore, I assume this is a configuration issue on the server. They are not being very helpful with debugging/configuring. Can anyone here offer advice on how to fix this?

share|improve this question
Hi I'm in same problem now, refer to , on size and restriction KML, they said that kml's should not bigger than 10MB and maximum fetched size of raw kml is 3MB :( My file is bigger than allowable size, I think it have to splitted :D – user4555 Oct 20 '11 at 6:34
Try KMZ which is smaller. – mankoff Oct 20 '11 at 13:56
up vote 2 down vote accepted

According to, you have to add this to htaccess file:

<IfModule mod_security.c> 
  SecFilterEngine Off 
  SecFilterScanPOST Off 
share|improve this answer
I don't know if that is the solution or not. I tried it myself in a local .htaccess and it did not have an effect. The host has now done something (unknown to me) and it now works... – mankoff Sep 19 '10 at 18:46

Important note on using KML & KMZ on your hosted server


Set the MIME on the server for accessing kml/kmz for Google Earth, Google Maps & Google Maps API reads KML and KMZ files. The standard MIME type for KML files is

* application/

The standard MIME type for KMZ files is

* application/

For Apache, add these lines to the httpd.conf file or a .htaccess file in the same folder (if your host only allows htaccess rather than httpd.conf access):

* AddType application/ .kml
* AddType application/ .kmz 

For Linux:

* AddType application/ .kml  

* AddType application/ .kmz  

  Application: opt/google-earth/googleearth 

I posted this here back in 2007

share|improve this answer

Other issue you can have is if your KML file is too large for google maps. Tells you file can't be found, but it takes a bit longer than a straight URL error.

Also, if you are on something that doesn't want to serve .kml or .kmz properly, you can use .xml or .zip and it seems to work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.