Zane Posted December 6, 2004 Share Posted December 6, 2004 I know my question has nothing to do with PHP but this forum is the most active and I go here all the tme for my answers. That being said --------------------------------------------------------- I'm using Dreamweaver MX 2004 to edit a site and I'm uploading it to an IIS 6.0 web server In dreamweaver when you want to link a word to another page you can either type it or you can click the small target button beside the link textbox and drag it to the desired file, thus linking the file automatically. What I don't like about this is that when I try and link lets say Contact to the file contact.htm which is in the same folder it will put "/contact.htm" notice the preceding slash.... This is when I'm in a subdirectory By having that slash there IIS somehow interprets is as.......go to the root directory...so it links more like this "[rootdir]/contact.htm". it doesn't put the domain in the html or anything it just links back to the root. I want it to say "contact.htm" without the slash but that is where my problem and question is. (The odd thing is that when and if I upload it to a apache server the way it is.....then it works fine. Like always the problem is Microsoft) Is there a way to change the way dreamweaver links the files? If you still don't understand what I'm talking about then ask me. Quote Link to comment https://forums.phpfreaks.com/topic/2082-dreamweaver-problem/ Share on other sites More sharing options...
sonjay Posted December 7, 2004 Share Posted December 7, 2004 The next time you make a link, instead of dragging the little thingie, click the folder icon next to it, and browse for the file you want to link to. Now, before you close that dialog box, look for the option down in the bottom left that asks whether you want the link to be "Relative to Site" or "Relative to Document." Choose "Document." That's a sticky option. From now on, all your links will be document-relative. Quote Link to comment https://forums.phpfreaks.com/topic/2082-dreamweaver-problem/#findComment-6786 Share on other sites More sharing options...
Zane Posted December 7, 2004 Author Share Posted December 7, 2004 Awesome.......that did exactly what I wanted.. Now I don't have to do a search and replace for the entire site or use "./" to refer to a file within the same directory.. Thank you Quote Link to comment https://forums.phpfreaks.com/topic/2082-dreamweaver-problem/#findComment-6787 Share on other sites More sharing options...
Roberto Posted December 14, 2004 Share Posted December 14, 2004 Now I don't have to do a search and replace for the entire site or use You still might have to do this. This option is only for new links you create, any links you have already created won't be changed by changing this option. Rob Quote Link to comment https://forums.phpfreaks.com/topic/2082-dreamweaver-problem/#findComment-6823 Share on other sites More sharing options...
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.