Log in

View Full Version : starting page



auriaks
08-29-2009, 12:32 PM
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.

Snookerman
08-29-2009, 12:40 PM
This article might be useful: http://css-tricks.com/how-to-redirect-indexhtml-to-indexphp/ (http://css-tricks.com/how-to-redirect-indexhtml-to-indexphp/)

Good luck!

traq
08-29-2009, 08:00 PM
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.

auriaks
08-30-2009, 09:56 AM
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.

traq
08-30-2009, 11:29 PM
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

auriaks
08-31-2009, 06:53 PM
ye :) my real link http://www.laisvasprotas.xz.lt but its lithuanian :D
btw, im done with this one... i used index.html to redirect to other page :cool: