dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Default HTML page in and folder ?

  1. #1
    Join Date
    Dec 2012
    Posts
    2

    Default HTML page in and folder ?

    Instead of writing paragraphs explaining the extract situation I will keep this simple.

    When people go to www.whatever.com by default they got to www.whatever.com/index.html

    If I was to provide a link like www.whatever.com/catalog without a .html or .htm just the folder address will it always got to a 404 page or is there away to set up a default page in that specific folder ?

    Any help would be appreciated thank you

  2. #2
    Join Date
    Dec 2012
    Posts
    2
    Sorry for my mispellings

  3. #3
    Join Date
    Mar 2011
    Posts
    1,156
    Every server has a set of acceptable default file names for each directory that get served when the user requests the root URL for that domain/directory. These are generally the file names you know, "index.html", "default.html", etc., but it can be set to a different name, if needed.

    However, changing the default directory is an entirely different matter. It can be done in two different ways. (1) You can set the default directory on the server, or (2) you can set up redirects so that all requests for the root directory and redirected to the selected alternate directory. With method 1, the user never sees the directory name in his browser. With method 2, he does. This is strictly a matter of choice, but the details depend on the type of software that runs your server - usually Apache or Microsoft IIs. What software runs your server?

  4. #4
    Join Date
    Aug 2012
    Location
    1453 Gingerwood ave, Milpitas CA 95035,
    Posts
    37
    This is url syntax
    protocol://domainOrIPAddressort/path/filename

    According to that synatx url is been made by the server.....

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



Recent Articles