Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Links Broken When Viewing Locally

Status
Not open for further replies.

hunter858

Technical User
Aug 22, 2008
2
0
0
US
I am having an issue with the local viewing of a site. I am a moderate user of dreamweaver and my boss wants me to clean up a website and add some new content.

Somehow, he created the site so that when I try and view it locally through explorer, the internal links as well as all the pictures aren't working correctly. So basically, I can't preview my page in my browser! I finally tracked it down to this:

The code in my html file is:

<IMG SRC="/htmlgifs/hondoheadder_01.jpg" WIDTH=252 HEIGHT=209>

But when view into the browser locally, the pictures don't show up. When I click on the properties of that picture, it shows the missing file as: file:///C:/htmlgifs/hondoheadder_01.jpg. Clearly, this is not where it should be (as my local site is in a folder on the desktop).

It works fine when I post it and view it on my remote server. I've noticed that if I remove the forward slash before "htmlgifs", it will work fine when I preview it locally. But, I've got to work with a site of maybe 100 pages and I'm worried about the find and replace making the site go screwy. Is there anything I can do to be able to view these files locally without changing a ton of html on every single page?

Thanks,
Kyle
 
I think this can be fixed using the site definition.
If you use the site setup, site/new site tab, then on the third page of the popup you get to put in

Where on your computer do you want to store your files

and the images page should be offset from there. So if you set this to the folder on your desktop, it sould automatically offset, within that folder, to the /htmlgifs/ folder.

Hope this helps.

S
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top