Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 03-08-2011, 03:02 PM   #1
Silver Member
 
notarypublic's Avatar
 
Join Date: Feb 2011
Posts: 191
Default relative vs root links in dreamweaver

I'm working on a site that uses pages generated from a template I made in dreamweaver. Dreamweaver automatically stores this template in it's own folder (root folder > templates > mainTemplate) and I have it link to my CSS files.

For some reason, the template stores the file location of my CSS files as their location on the local machine - "file:///C|/Users/jlonganecker/Documents/New CVCN Website/new CVCNWebsite just html/CVCN.css"

This prevents the website from finding the CSS document once it's uploaded to the server.

Is this a common error?
__________________
http://www.joshualoves.com/
notarypublic is offline   Reply With Quote


Old 03-08-2011, 03:48 PM   #2
Silver Member
 
notarypublic's Avatar
 
Join Date: Feb 2011
Posts: 191
Default

Update: The template stopped updating the pages that were using it, so after changing the file location to be relative to the site folder, and manually updating all the pages, it works like it's supposed to. I'm unsure why the template stopped updating most of the pages, though?
__________________
http://www.joshualoves.com/
notarypublic is offline   Reply With Quote
Old 03-08-2011, 05:52 PM   #3
Mug
Bronze Member
 
Join Date: Dec 2010
Posts: 62
Default

If you don't set up your site then Dreamweaver will find the path which will be relative to the storage. To get around this you need to set up the following:

http://www.learnwebdesignonline.com/...weaversite.htm
(ignore from 3 onwards)

Once you have done this all the image/css/script paths should be relative to the root (site) folder. I would suggest that you use absolute paths if keywords feature in your url. It may help with the SERPS.
__________________
Mug
Web Design Chester | Check out our latest post on the Job Centre
Mug is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:40 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.