Results 1 to 6 of 6

Thread: starting page

  1. #1
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default starting page

    hi... i always named first visitors page index.html . Because database detects it as first page. Then i tried index.php, but it worked only with Opera to me. How can i make start.php my firs view page?? Because othervise, my explorer opens folder with files when i type web address. thanks.

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    This article might be useful: http://css-tricks.com/how-to-redirect-indexhtml-to-indexphp/

    Good luck!

  3. The Following User Says Thank You to Snookerman For This Useful Post:

    auriaks (08-29-2009)

  4. #3
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    If you're not dealing with bookmarks (i.e., a new site), or people specifically typing "www.yoursite.com/index.html" into the address bar (and most people don't - they type www.yoursite.com, or even just yoursite.com), then it could be helpful to know that most web hosts will serve up the "index.php" page simply if there is no "index.html" page.

  5. #4
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    ye, they do but i dont know how it happened, that in opera i entered http://laisvasprotas.lt i see my index.php and everything is working well but when i do that in IE it came a folder full of my database files.

  6. #5
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    then I would use the .htaccess method Snookerman suggested. In addition, it may be worth your while to put a blank "index.html" page (or "home.html", or whatever your host defaults to) in each of your folders, so if, for whatever reason, someone gets through, they would get a blank page instead of free access to your files.

    BTW I tried your link (firefox 3) and I got a 404 page

  7. #6
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    ye my real link http://www.laisvasprotas.xz.lt but its lithuanian
    btw, im done with this one... i used index.html to redirect to other page

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
  •