First, for users to open these files in Google Earth, you need to add MIME types to the server. These are:
- application/vnd.google-earth.kml+xml kml
- application/vnd.google-earth.kmz kmz
Next, consider using network links. These are KML files which automatically refresh content as it changes on the server. With a network link, users do not need to download the latest version of your KML each time its content changes. This works great for dynamic KML data. Learn more.
Lastly, users can also view a limited set of KML content in Google Maps if the KML file is already on a web server. Just go to maps.google.com, type in the URL of the KML file and click Search Maps. In the resulting page, click Link to this page, copy the URL and share it the world. Here is an example of a KML file as shown in Google Maps; it represents a hike in Colorado.