gfx25
inherit
-4221870
0
Dec 1, 2024 17:29:37 GMT -8
gfx25
0
January 1970
GUEST
|
Post by gfx25 on Oct 22, 2010 18:57:31 GMT -8
Hey I noticed (Not that I really bothered to look) Facebook uses home.php so my question is is that the same things as index.php?
|
|
inherit
77753
0
Jul 18, 2024 12:23:50 GMT -8
Bob
2,623
April 2006
bobbyhensley
|
Post by Bob on Oct 22, 2010 19:09:32 GMT -8
Hey I noticed (Not that I really bothered to look) Facebook uses home.php so my question is is that the same things as index.php? It can be. Apache can configured to use any file as a directory index. It's an arbitrary value.
|
|
gfx25
inherit
-4221882
0
Dec 1, 2024 17:29:37 GMT -8
gfx25
0
January 1970
GUEST
|
Post by gfx25 on Oct 22, 2010 19:28:36 GMT -8
Hey I noticed (Not that I really bothered to look) Facebook uses home.php so my question is is that the same things as index.php? It can be. Apache can configured to use any file as a directory index. It's an arbitrary value. Facebook (index.php) Logged into facebook (home.php) Is that how they have it set up? I never noticed that they have used index
|
|
inherit
77753
0
Jul 18, 2024 12:23:50 GMT -8
Bob
2,623
April 2006
bobbyhensley
|
Post by Bob on Oct 22, 2010 19:44:35 GMT -8
It can be. Apache can configured to use any file as a directory index. It's an arbitrary value. Facebook (index.php) Logged into facebook (home.php) Is that how they have it set up? I never noticed that they have used index It's probable that they use a rewrite rule to map both requests to a single file. As it stands though, file names are arbitrary and hold no meaning until you put meaning to them. By default Apache looks for index.html, for example. When you install PHP you generally configure Apache to then look for index.php as well. There's nothing saying you cannot tell Apache to look for home.php. Take a look at the DirectoryIndex directive for more information.
|
|
gfx25
inherit
-4221983
0
Dec 1, 2024 17:29:37 GMT -8
gfx25
0
January 1970
GUEST
|
Post by gfx25 on Oct 22, 2010 22:47:18 GMT -8
Thanks Bob I'll take a look
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Oct 23, 2010 14:34:52 GMT -8
Apache by default results to index.php. You can change it to use any file when navigating to a directory with no file specified. Facebook just uses home.php as theirs, and their index.php file just redirects to home.php.
index.php:<?php header('Location: home.php'); ?>
And by setting the default index file to home.php, accessing facebook.com/ leads to facebook.com/home.php
Le simple.
|
|