When someone types in the root url of my website index.html is displayed, I would like index.php to displayed. Could someone tell me how I can do this?
Thanks a lot for your help,
Westen
Redirect
Moderator: General Moderators
In Apache config file, change DirectoryIndex line to this one:
Code: Select all
DirectoryIndex index.php index.htmlThere are 10 types of people in this world, those who understand binary and those who don't
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Redirect
Any one of:westen wrote:When someone types in the root url of my website index.html is displayed, I would like index.php to displayed. Could someone tell me how I can do this?
Thanks a lot for your help,
Westen
1) Delete/rename the index.html file
2) Add a meta-based redirect
Code: Select all
<meta http-equiv="refresh" content="0; /index.php" />Code: Select all
DirectoryIndex index.php-
tokyowalker
- Forum Newbie
- Posts: 4
- Joined: Sun Jul 15, 2007 8:45 am
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm