|
|
#1 (permalink) |
|
Registered User
Comfy Contributor
Joined in Oct 2003
Lives in midtown atlanta
Hosted on viva
174 posts
Gave thanks: 0
Thanked 1 Time in 1 Post
|
let's say that there is an image in the 'images' directory on my main site (ex: www.site.com/images/pic.jpg) to which i want to link from a subdomain (subdomain.site.com). if i give the path on the subdomain as "/images/pic.jpg", the browser looks in subdomain.site.com/images/pic.jpg, which, of course, is not where the image is.
is there a path that i can use to link/point to the main domain from the subdomain without using the entire url (ex: img src="http://www.site.com/images/pic.jpg")? thanks in advance. |
|
|
|
|
#2 (permalink) |
|
the one who was
Super #1
Joined in Jul 2003
Lives in Memphis
1,967 posts
Gave thanks: 0
Thanked 3 times
|
Never tried this before, but try: ../images/picture.jpg
__________________
Patrick Warnings: The program(s) might crash unexpectedly or behave otherwise strangely. (But of course, so do many commercial programs on Windows.) --www.gimp.org |
|
|
|
|
#3 (permalink) | |
|
Registered User
Comfy Contributor
Joined in Oct 2003
Lives in midtown atlanta
Hosted on viva
174 posts
Gave thanks: 0
Thanked 1 Time in 1 Post
|
Quote:
|
|
|
|
|
|
#4 (permalink) |
|
the one who was
Super #1
Joined in Jul 2003
Lives in Memphis
1,967 posts
Gave thanks: 0
Thanked 3 times
|
Oh well. Browsers expect images to be in a /images/ directory of the domain, or in this case, subdomain. If they are, they cache them so they don't have to download the images again. Looks like your only option is to either copy the image into the subdomain's images folder, or use the full URL to link to the images.
__________________
Patrick Warnings: The program(s) might crash unexpectedly or behave otherwise strangely. (But of course, so do many commercial programs on Windows.) --www.gimp.org |
|
|