Results 1 to 7 of 7

Thread: instead of index.html, why not something.html

  1. #1
    Join Date
    Aug 2004
    Posts
    135

    Default instead of index.html, why not something.html

    i been wondering about this issue for a long time long.
    just never got to the point of asking anyone
    i want to know how to make your website's frontpage automatically load something.html instead of index.html
    so my site is at 404.bizhat.com
    if u use it as the URL, it will direct you to 404.bizhat.com/index.html
    so i am wondering if there anyway i could make it go to 404.bizhat.com/something.html?

  2. #2
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    index.html as index page is standard followed by most web servers.

    You can configure web server to treat somename.extension as the index page. But it will be better to follow the convention.

    If you have a different name other than index.html you have to do one of the following

    1) Configure the web server
    2) For Apache, use .htaccess
    3) Use Frame to load other page
    4) Use Java Script Redirection
    5) HTTP-EQUIV Redirection



    Code:
    <html>
    <head>
    <META HTTP-EQUIV="REFRESH" content="0;URL=somepage.extension">
    </head>
    <body>
    
    </body>
    </html>
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

  3. #3
    Join Date
    Sep 2004
    Location
    Maryland, USA
    Posts
    332

    Default

    Quote Originally Posted by admin
    5) HTTP-EQUIV Redirection

    Code:
    <html>
    <head>
    <META HTTP-EQUIV="REFRESH" content="0;URL=somepage.extension">
    </head>
    <body>
    
    </body>
    </html>

    to understand this code:

    Code:
    HTTP-EQUIV="REFRESH"
    this is basically telling your browser that this function will refresh the page.

    Code:
    content="0
    This configures how long the browser will wait till it refreshes the page. 0 = 0 seconds, 5 = 5 seconds. This number MUST be an integer.

    Code:
    URL=somepage.extension
    Simple enough, this is the page that is being redirected to when the current page is refershed by the browser.

    a real life example is:

    http://www.geocities.com/madboyv1

    Code:
    <META HTTP-EQUIV="REFRESH" CONTENT="5;URL=http://charreddirt.bizhat.com">

  4. #4
    Join Date
    Aug 2004
    Posts
    135

    Default

    thanx, i will look into that

  5. #5
    Join Date
    Sep 2004
    Location
    Maryland, USA
    Posts
    332

    Default

    Quote Originally Posted by tricky_linux
    thanx, i will look into that
    no problem.

  6. #6
    Join Date
    Oct 2004
    Posts
    16

    Default hi all

    the index.html is the industrial standard create by most companies...
    so there is no choice... but to follow it.

  7. #7
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    Yes, better to follow standards.
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

Bookmarks

Posting Permissions

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