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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.