Need help changing index.php to index.html

alexismya1

Verified User
Joined
Mar 1, 2005
Messages
9
Hi. I am very new to PHP, actually not knowing alot. I somehow replaced my index.html with another website's index.html. I have the index.php and some back ups, but hosting company is having difficulty finding my index.html file. Can anyone give me instructions on changing index.php to index.html? Thanks
 
alexismya1 said:
Hi. I am very new to PHP, actually not knowing alot. I somehow replaced my index.html with another website's index.html. I have the index.php and some back ups, but hosting company is having difficulty finding my index.html file. Can anyone give me instructions on changing index.php to index.html? Thanks

try to rename it
 
The right answer to your question would depend on why you need both an index.html and an index.php.

If you wrote your site, then you should know. If you didn't write your site you may need to speak with whomever did.

Jeff
 
I was really hoping to get answers here. I will tell you why I need to know and I won't bore u with a long story. My daughter who is 27 yrs old deleted my entire website from the Internet Oct 5, 2005. It has over 100k revenue on it. For about 10 hours I wasn't sure if my business was gone. My daughter designed the php website after we had been working with over 15k page html website. (she is an evil chid and had deleted an html website I had online in 1999.)
So I knew nothing about php in Oct when I had been self taught with html. So we got everything working until last nite when I tried to upload a new user's files using ftp and I overode my index file wth the new user's index.

Yes I know I am fine with the index php file. But as u can see I can't ask the person who created the code how to change the index php file to index.

I haven't spoken to my daughter nor my 7 year old granddtr since that day nor do I know where they are. My daughter lost custody of her son, my 2 year old grandson, who I don't get to see very much anymore. At least I know where he is.

So I hope you can see why I don't want to lose anything anymore. I don't think its wrong to want my index.html page back.

I m sorry no one was able to take a few mins out of their busy day to help me.
 
I was really hoping to get answers here. I will tell you why I need to know and I won't bore u with a long story. My daughter who is 27 yrs old deleted my entire website from the Internet Oct 5, 2005. It has over 100k revenue on it. For about 10 hours I wasn't sure if my business was gone. My daughter designed the php website after we had been working with over 15k page html website. (she is an evil chid and had deleted an html website I had online in 1999.)
So I knew nothing about php in Oct when I had been self taught with html. So we got everything working until last nite when I tried to upload a new user's files using ftp and I overode my index file wth the new user's index.

Yes I know I am fine with the index php file. But as u can see I can't ask the person who created the code how to change the index php file to index.

I haven't spoken to my daughter nor my 7 year old granddtr since that day nor do I know where they are. My daughter lost custody of her son, my 2 year old grandson, who I don't get to see very much anymore. At least I know where he is.

So I hope you can see why I don't want to lose anything anymore. I don't think its wrong to want my index.html page back.

I m sorry no one was able to take a few mins out of their busy day to help me.
 
Sounds like you just need to move the index.html file out of the way. Most likely the http.conf file has the order of default documents such that index.html will have precedence over index.php. That being said, your website is picking up the index.html file that shouldn’t be there and the index.php is not being accessed. Just rename the index.html to something else and see if that fixes your problem.
 
Back
Top