PDA

View Full Version : Subdomains-Problems with links- Help Scott


fmarsh
06-07-2000, 06:50 PM
Logged into my artistnation site using the new subdomain,i.e. fmarsh.artistnation.com but found that my links to my pages at artistnation no longer work.
However if I pull up the same page using the old URL address of http://www.artistnation.com/members/paris/fmarsh/ the links remain OK.

Is it just me or are others having the same problem.

scottb
06-07-2000, 07:07 PM
Hi gang - apologies, I should have warned you about the side effect. :-)

fmarsh.artisnation.com expands to:
http://www.artistnation.com/members/paris/fmarsh

Everything is fine there. The problem is referencing things (such as
images) using absolute URLs. For example:

"/graphics/ezweb/bg3.jpg"

Actually expands to:
http://www.artistnation.com/members/paris/fmarsh/graphics/ezweb/bg3.jpg

Not what we want. :-) The solution is to use absolute URLS for files that
are not directly located in your personal directory.
http://www.artistnation.com/graphics/ezweb/bg3.jpg

I will fix the EZ-Web system to map them properly, although you will need
to remap your local images using the full URL:
http://www.artistnation.com/members/paris/fmarsh/filename.jpg

OR
http://fmarsh.artistnation.com/filename.jpg

Cheers.
Scott

Rod
06-07-2000, 07:36 PM
Thanks for the info Scott, so if we just use the short domain name for our index page no problems.
Rod.

fmarsh
06-07-2000, 08:49 PM
Thanks Scott for the quick response.

My image links were ok. It was when I clicked on the image to take you to the paintings in artistnation or art-agent com. that I had the problems e.g.
1) bringing my site up using fmarsh.artistnation.com then clicking on one of the links to a painting at art-agent.com the link now shows to http://fmarsh.artistnation.com/cgi-bin/gallery_browser.cgi?cmd=browse_detail&cust_id=5267&exhibit_id=4374&community=paris&gallery_id=133. Unfortunately this link does not work.

2) If I use the old address, it shows link http:/cgi-bin/gallery_browser.cgi?cmd=browse_detail&cust_id=5267&exhibit_id=4374&community=paris&gallery_id=133. The link continues to work fine.

I think that the code plonks the entry address that you use before /cgi-bin. Therefore I need to alter my links to put "http://www.artistnation.com/" before "cgi-bin", thius making all addresses absolute. I think this will allow viewing of the links irrespective whether a visitor comes in using the new or old address.
What do you think.

Fred

scottb
06-07-2000, 09:24 PM
That's correct, Fred. As long as you treat the new short version of your URL as an "alias" to your complete old URL, you can keep everything straight.

For instance,
http://fmarsh.artistnation.com/cgi-bin

actually expands to:
http://www.artistnation.com/members/paris/fmarsh/cgi-bin

Which probably doesn't exist. http://www.wetcanvas.com/ubb/smile.gif

Cheers.
Scott

Painter
06-09-2000, 05:23 AM
What did ya say? Sounds like Greek to me. http://www.wetcanvas.com/ubb/frown.gif

------------------
God Blesses!
Ched