Skip navigation
Currently Being Moderated

Can folders' index.html contents avoid containing such folders' names within their urls, please?

Apr 22, 2012 9:03 PM

Tags: #index.html #folders #filing


Could Dreamweaver’s file panel folders (located to the right, within Dreamweaver CS5.5, etc.)  potentially contain index.html files that do NOT share such folders’ actual names within their own urls?

 

The reason I ask is that I would like to create various index.html sub-directories that will all be linked from yet another index.html subdirectory, for web surfers’ convenience.   It would really help me keep them all organized (for occasional updates' sake) if I could keep them in a folder within Dreamweaver’s file panel that at least resembles that other index.html subdirectory’s name, though.   However, it seems that moving index.html files to such an "alpha" folder inserts that alpha folder’s name into the contained urls, not just its own.   Can this be avoided or worked around, somehow, please?     In case it helps, I have CS5.5 and will have CS6 upon its release date.   Any thoughts, please? 

 
Replies
  • Currently Being Moderated
    Apr 22, 2012 9:38 PM   in reply to DreamWeaverBeliever

    I really have no idea what you are trying to do.... it's just not clear.

    As for an index.html file, you could have 100 subfolder (each uniquely name or pathed of course) and each could have it's own index.html file inside it. But inside each folder, you can only have 1 index.html file.

    If this is not what you are looking for, please restate your question in clearer terms.

    Best wishes,

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 23, 2012 7:37 AM   in reply to DreamWeaverBeliever

    Perhaps there is a misunderstanding about the "index.html" file. On a Web server, the "index" file typically serves as the "Home" or highest level page for any particular folder and the server will normally default to that file even if that specific file is not specified in the URL.

    So for example:

    http://exploreolympics.com/reports/

    and

    http://exploreolympics.com/reports/index.php

    load the same file. As does:

    http://exploreolympics.com/

    and

    http://exploreolympics.com/index.html

    "index.php" is the default "Home" page in the "reports" directory as in "index.html" for the root directly of exploreolympics.com

    Are you usng and or asking questions related to using "index" files in this way or is it something else?

    Do you simply want to hide part of the path in the URL when a viewers visits a Web page?

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 23, 2012 11:51 AM   in reply to DreamWeaverBeliever

    You can only have one file named "index.html" per folder. So the only way to use multiple files with the same "index.html" file name is to use multiple folders, each which then must have a unique name.

    That unique folder name then becomes part of the URL (Uniform Resource Locator) or path to the index.html file.

    So, if the only way you can use multiple files with the same name (index.html) is to disperse them into uniquely named folders, and that folder then becomes part of the URL or path to those "index.html" files,

    group index.html files in the Dreamweaver folders section (located to the right when using Dreamweaver) under a folder name that doesn't appear in the contained urls, themselves?

    It seems that you are attempting to hide part of the URL (the unique folder that a particular index.html file resides in) or why not just use subfolders and include that folder name in the full URL.

    Sorry if I am not following you. I feel like we may still be talking about two completely different things.

    Best wishes,

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 23, 2012 12:17 PM   in reply to DreamWeaverBeliever

    You have to include all sub-folder names, however many you use, in any URL... unless you are doing some special re-directs or folder rewrites, both of which would be handled server side.... neither would be available on your local machine.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 23, 2012 9:54 PM   in reply to DreamWeaverBeliever

    No. There is no oganizational context other than folders, which as you know do appear in the url. Use the rewrite engine to modify the urls if you want them more concise.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 25, 2012 10:21 PM   in reply to DreamWeaverBeliever
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points