www.webdeveloper.com
Results 1 to 4 of 4

Thread: Help index file

Hybrid View

  1. #1
    Join Date
    Jan 2013
    Posts
    1

    Help index file

    Hey guys

    So i just opened a mexican restaurant and im developing a website for it. I know some html and css but this is the first time i create a website.

    The thing is that the website goes www.paseoazteca.com/index
    But when i just type in www.paseoazteca.com it loads to a page and just shows the sitemap(?)

    Index of /

    about.html
    contact.html
    address.html
    index.html
    menu.html
    promotions.html

    Is there a way to create a webpage for the main address "www.paseoazteca.com"?

    Or, how do i redirect the site so that when i entry "www.paseoazteca.com" it takes me to "www.paseoazteca.com/index"?

    Thx in advance

    Alan

  2. #2
    Join Date
    Jan 2013
    Posts
    3
    Just be sure that your index.html is in the root of the site, the other things are not important
    I this way your main page should be available by blabla.com and blabla.com/index.html

  3. #3
    Join Date
    Sep 2008
    Location
    Akron, OH
    Posts
    1,112
    It sounds like your directory index isn't set. Try creating a file called ".htaccess" and add the following to it:

    Code:
    DirectoryIndex index.html
    Then upload that to the root directory (where your about, contact, index.html) files are. Basically, the .htaccess file will tell the browser to use the index.html file as your directory index. Here's a link with more information:

    http://httpd.apache.org/docs/2.2/mod/mod_dir.html

    This will only work if you're running Apache as your server.
    I'm always up for networking with fellow web professionals. Connect with me on LinkedIn if you like!

  4. #4
    Join Date
    Aug 2012
    Location
    Tucson
    Posts
    45
    Don't forget that there is an index file hierarchy :

    index.html
    index.htm
    index.php

    I use index.htm for my portal page: http://jp29.org/
    and
    the subordinate index.php for my Web Developer Tool Kit Home Page: http://jp29.org/index.php

    JP
    Web Developer Tool Kit - for creating Standards compliant and Interoperable web pages
    W3C Markup Validation Service - validate HTML code for reliable rendering in all Browsers
    WAVE accessibility evaluation tool - check page structure, image alt text, form labels, etc.

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