You state that your link looks like
<href>/cgi/subview1.py</href>
not sure how the kml parser works but in Unix if you start your path
with a / it means that the path is relative to the system's root
directory.
The kml reference guide states that the relative path is relative to
the location of the KML file.
If your KML file is in the same folder as the cgi directory then you
should use
<href>cgi/subview1.py</href>
If this is not the case then you need to provide more information.
On Aug 10, 12:02 pm, bsdz wrote:
> Hi
>
> I have several KML files that have network links that look something
> like the following and they work fine. This example would be found athttp://
www.mydomain.com/main.kml.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <kml xmlns="
http://www.opengis.net/kml/2.2">
> <Folder>
> <name>My KML View</name>
> ...
>
> <NetworkLink>
> <name>My Subview One</name>
> ...
> <Link>
> <href>
http://www.mydomain.com/cgi/subview1.py</href>
> ...
> </Link>
> </NetworkLink>
>
> ...
> </Folder>
> </kml>
>
> I now would like to transfer these files to a different server with a
> different domain,
i.e.www.myotherdomain.com. I would like to replace
> the above <href> element with a relative path as described in the KML
> reference; something like: -
>
> ...
> <href>/cgi/subview1.py</href>
> ...
>
> This does not seem to work. GE doesn't seem to pick up the base URL inhttp://
www.myotherdomain.com/main.kmland prefix the Link's <href>.