Answer found!
My previous host was by name reference, so I set DNS to refer to it in a frame. With my new host now I have an IP address, and can have DNS map to it directly.
Nevertheless, I'm unsure why the Gallery config would recommend and give for examples full URL instead of relative URL. Relative references work fine in either case.
Original post
========
On moving my site to a new web host I find the album image links broken unless I specify the album URL with the actual IP address rather than the symbolic name. Curiously, if I get properties of an image link (with the previous, broken symbolic URL) and paste that into the IE browser window, it pulls up the image fine.
Here's the salient part of the config.php file:
$gallery->app->albumDir = "/home/qxocom/public_html/gallery/albums";
$gallery->app->tmpDir = "/home/qxocom/tmp";
$gallery->app->photoAlbumURL = "http://www.qxo.com/gallery";
$gallery->app->albumDirURL = "http://209.151.82.39/gallery/albums";
That works, but if you replace the IP address by "www.qxo.com" then all image links are broken??
Posts: 3
I've also discovered that unless:
$gallery->app->photoAlbumURL = "http://www.qxo.com/gallery";
is changed to:
$gallery->app->photoAlbumURL = "http://209.151.82.39/gallery";
The login link breaks.
This strange behavior feels as if the browser can resolve a symbolic URL at the address window, but not from within a page.
By the way, relative URLs would work fine.
Posts: 3
Answer found!
My previous host was by name reference, so I set DNS to refer to it in a frame. With my new host now I have an IP address, and can have DNS map to it directly.
Nevertheless, I'm unsure why the Gallery config would recommend and give for examples full URL instead of relative URL.
Posts: 7994
Gallery 1.x requires full URLs because of the way that we use Javascript. This requirement will go way in G2.