Page 1 of 1
Redirect
Posted: Tue Jan 08, 2008 4:21 am
by westen
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
Posted: Tue Jan 08, 2008 4:27 am
by VladSun
In Apache config file, change DirectoryIndex line to this one:
Code: Select all
DirectoryIndex index.php index.html
Re: Redirect
Posted: Tue Jan 08, 2008 4:31 am
by Chris Corbyn
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
Any one of:
1) Delete/rename the index.html file
2) Add a meta-based redirect
Code: Select all
<meta http-equiv="refresh" content="0; /index.php" />
3) If the server runs apache, create a file named ".htaccess" at the root of your website with the following:
Posted: Tue Jan 08, 2008 12:21 pm
by westen
Thank you, I just deleted the index.html file. Is there no problems associated with this?
Cheers,
Westen
Posted: Tue Jan 08, 2008 3:35 pm
by tokyowalker
thanks ..had the same issue before
Posted: Tue Jan 08, 2008 3:43 pm
by superdezign
westen wrote:Thank you, I just deleted the index.html file. Is there no problems associated with this?
Not if you have an index.php file (and your server accepts it as the default).