HTML File Unix

Unix File Structure (Web)

    Unix runs on the best web servers and have for years. It is more stable and considerably more efficient than anything else. Because of this, Unix has established certain standards and procedures.

    If you are thinking "I can make my own web page", then some details about Unix can make your life easier. More specifically, how a web server works. Unix does do some things a little differently and you should know some of these details.


DOS/Windows
Unix/Web Servers
Windows
255 character filename system.
DOS
11 character filename system.
Unix
255 character filename system.
Not always case sensitive.

FILENAME = Filename = filename

    You could have all three filenames, but each would be called by its' correct name using the proper case.
Case sensitive.

FILENAME (not =) Filename
FILENAME (not =) filename

    You could have all three filenames, but the wrong case on any character would not bring up the name.
A file name can include spaces

"This is a file name.htm"
would appear as:
This is a file name.htm

Recommend:

Thisisafilename.htm or
This_is_a_file_name.htm or
This-is-a-file-name.htm
A file name does not include spaces

"This is a file name.htm"
would appear as:
This%20is%20a%20file%20name.htm

%20 is the hexadecimal value of a space ( ) which is decimal 32.
Directory\Filename

    Notice the slash between the Directory and Filename? It is a back slash (\).
Directory/Filename

    Notice the slash between the Directory and Filename? It is a forward slash (/). Minor, but significant difference.

    Web pages should always reference the Unix style, even when testing on your local machine (the browser knows).
directory/index.html

    When calling a page with your browser, always include the file name. The server usually looks for index.htm, index.html, or index.php as the default file in a web page.
directory/

    In Unix, your browser can just point to the domain and the server will give you index.html, index.htm, or index.php. You only need to specify a file name if you are trying to find a different name.

    Occasionally, you may find a server that does something else, but that is setup by the server administrators for specific purposes.