wkg Posted January 6, 2003 Posted January 6, 2003 Howdy, I have a subdomain set up... http://calendar.austinamericana.com/ which I can access, but the images don't load properly. However, if I enter the URL http://www.austinamericana.com/calendar/ everything looks fine. I must be missing some critical concept on how sub-domains work. Can some one help? Thanks, Bill Quote
TCH-Don Posted January 6, 2003 Posted January 6, 2003 Your image tags are relative (../image) and your images are in (www.site.com/page_images) so when in the real location ( www.site.com/calendar/) the tag (../page_images/image) works by going up a level and then into (page_images) Change your image tags to absolute (www.site.com/page_images/image) or put them in the same folder as the site or a folder below (www.site.com/calendar/page_images/image) and change the tag to (page_images/image) hope this helps Quote
wkg Posted January 6, 2003 Author Posted January 6, 2003 Thanks, Turtle, although your method would work, I was reluctant to go in and change all my links. But you did trigger a memory of an HTML element I'd seen in the past, never used, and never quite understood what it was used for - the BASE element. I had to go look it up in the spec and then gave it a try. By adding: <BASE href="http://www.austinamericana.com/calendar/index.html"> in the HEAD of my document all the relative links point to the right place no matter which entry (domain or subdomain) is used. Thanks, I've learned something today Bill Quote
TCH-Don Posted January 7, 2003 Posted January 7, 2003 Thank you Bill, I had forgotten about BASE too, and I may redo my image links as well, now that I have a use for it. I had to look it up now too, and I also found the target option, I had also forgotten about, maybe I should re read the book LOL have a nice day! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.