the fastest way to convert all links that are "relative to document" to "relative to site

Posted on 2004-09-28
Medium Priority
Last Modified: 2010-04-25

What would be the fastest way to convert all links that are "relative to document" to "relative to site"?  
if this is what i have right now:
<img src="CCImages/FinalCCImages/redbutton.gif">
I tried to change it to:
<img src="/CCImages/FinalCCImages/redbutton.gif">
but now all the images are not showing (just an X) including my navbar is gone.
Question by:mdbbound
  • 2
LVL 23

Accepted Solution

Saqib Khan earned 2000 total points
ID: 12173662
> <img src="/CCImages/FinalCCImages/redbutton.gif">

by doing this it is assumed "CCImages/" Folder is within your Site ROOT folder (where the index Page is)?
if thats true then it should work, otherwise you have to define the Correct Path.(/Images/CCImages/.. etc)
LVL 23

Assisted Solution

by:Saqib Khan
Saqib Khan earned 2000 total points
ID: 12173679
in most cases we do Global Search and Replace in DW.

Search for  - >    /CCImages/
Replace with - >  http://www.site.com/CCImages/

Good Luck

Author Comment

ID: 12173938
Thanks adilkhan

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
The video provides a quick and easy steps to migrate MBOX file to well known Outlook PST and Office 365. Besides this, it also supports and migrates more than 20 email clients of MBOX which include AppleMail, Opera, Thunderbird and SeaMonkey effortl…
Watch the video to know how one can repair corrupt Exchange OST file effortlessly and convert OST emails to MS Outlook PST file format by using Kernel for OST to PST converter tool. It can convert OST to MSG, MBOX, EML to access them. It can migrate…

586 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question