Stumped: Subdomain Problem

  • websquad66
  • Novice
  • Novice
  • User avatar
  • Posts: 15

Post 3+ Months Ago

Having hand coded a few thousand web pages since the early '90s, I feel stupid having been stumped by what is likely a simple problem.

I have a subdomain: sub.mydomain.com. I dropped some stuff in it that in the past, in its on dedicated domain, worked fine. However, the images do not work. The image files are in a /graphics/ subdirectory. Here's the code for the "header.html" file (I use server side includes):

Code: [ Select ]
<h1 id="title">Header Description<img class="logo" src="/graphics/header-1.jpg"
   alt="Header Description" width="720" height="177"></h1>
  1. <h1 id="title">Header Description<img class="logo" src="/graphics/header-1.jpg"
  2.    alt="Header Description" width="720" height="177"></h1>


In Firefox and IE 8 all I get is the two text descriptions, and what appears to be the correct amount of space reserved for the header (i.e., 720x177). Looking at the source, it is clear that the SSI's are working (everything is resolved, CSS works, etc.) But, alas, no jpeg file.

I "thought" that with subdomains I could just drop the contents of the old site into the new subdomain root and the relative addressing would work.

How can I fix this?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • CXLink
  • Expert
  • Expert
  • User avatar
  • Posts: 685
  • Loc: ATL-GA

Post 3+ Months Ago

so your initial file with this header is sub.domain.com/index.html and the header-1 image is located @ sub.domain.com/graphics/header-1.jpg? If that's correct, I don't see any problem other then maybe I would close the img tag.

Code: [ Select ]
 1. <h1 id="title">Header Description<img class="logo" src="/graphics/header-1.jpg"
2. alt="Header Description" width="720" height="177"/></h1>
  1.  1. <h1 id="title">Header Description<img class="logo" src="/graphics/header-1.jpg"
  2. 2. alt="Header Description" width="720" height="177"/></h1>


If that's not it, I might suggest you throwing it up on a server and then putting up a link to the picture and the html file.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 42 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.