Results 1 to 7 of 7

Thread: Root relative error

  1. #1
    Join Date
    Dec 2004
    Los Angeles

    Root relative error

    I'm using library files for the navigation on my site and the heirarchy of them is root relative. When I preview pages in my browser however I lose the "../" of those files and the pages don't work. I've been using the "Preview using temporary file setting" to preview but that doesnt really solve the problem.

    Has anyone run into this problem? I want to test the site locally. Thanks for any help.


    I'm running Dreamweaver MX 2004 v7.0.1 on a mac.

  2. #2
    Join Date
    Jun 2005
    United Kingdom
    I use DW MX2004, too.
    Please confirm you have set up your local site following the wizard, and have been using the point facility when setting up a link, and that your library files are located within your Dreamweaver site.

    I don't know how you test locally - I have Apache2 set up on my laptop. The site shows up just as it does on my domain server. I don't use F12 - I go straight into localhost in my browsers.

  3. #3
    Join Date
    Apr 2005
    Bathurst, NSW, Australia
    just a note
    ../ isnt root relative, it just takes you up a directory
    / is root relative

    If I wanted to link to file1.1.1 from any file I could go /folder1/folder1.1/file1.1.1
    If I wanter to link to file1.1.1 from file3.1.1.1 according to its relitave path I could go ../../../../folder1/folder1.1/file1.1.1
    Last edited by bathurst_guy; 12-08-2005 at 05:14 AM.

  4. #4
    Join Date
    Jun 2005
    United Kingdom
    I wondered exactly what mtgentry meant. I thought he might have meant that he had urls relative to the root directory, rather than absolute urls.

    Whatever, if he has an index file set up in his root DW site, and sets up further directories (if he wants them) within DW, then all should work.

  5. #5
    Join Date
    Dec 2004
    Los Angeles
    sorry for the "../" confusion - thanks for the explanation.

    I used a wizard to setup the site, the links are correct, and my library files are indeed within my site. Oh and yes, I use F12 to preview.

    The whole site was copied from another PC where it worked fine. And it worked fine on my machine until I started to change the links in the library file for a specific page. If I modify it, then the whole page will cease from linking when I test the site. This is true for any page that I try to modify. But the rest of the site still works fine.

    any thoughts? Thanks guys.

  6. #6
    Join Date
    Dec 2005
    The easiest way to copy a site from one PC to another is to copy the actual folder where the whole site is, instead of copying the files within that folder. After you copy the folder into an external media, then you shouldn't have any problems later on when you move that folder to another PC.

    Now, lets say that we still have a problem with the links. If you are linking files within a folder, where that folder is within another site, then make sure that you change the link from "/" to "/folderwhereyouhavefiles/".

    Another thing I suggest is to look at the Status Bar on the browser window, and look at where the link is pointing to; that helps understand where the problem is coming from. I'm sure you know where the Status Bar is, but just in case is at the lower-left section of your browser; if you don't see it, just go View-Status Bar from your browser menu.
    Don't box me in; let me surf.

  7. #7
    Join Date
    Dec 2004
    Los Angeles
    Yes, the whole site was copied to another computer in one folder.

    Here is the path of a page that links properly:

    Here is a page that has been modified, and now wont link:

    It's like when I update it, the site forgets where its root folder is located (testeducators)

    My links are all kosher because they worked on the other machine just fine. Maybe my software is be buggy on the mac?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.19411 seconds
  • Memory Usage 2,900KB
  • Queries Executed 13 (?)
More Information
Template Usage (33):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (7)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates