Jump to content

dreamweaver problem


Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/2082-dreamweaver-problem/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/2082-dreamweaver-problem/#findComment-6786
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.