Go Back   HostGator Peer Support Forums > Public Forums > Pre-Sales Questions

Notices

Reply
 
Thread Tools
  #1  
Old 04-17-2009, 09:26 PM
2cents 2cents is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 11
Default Quick Index.html Question

Hi everyone. I've decided to go with hostgator as my webhost. I have a simple question. I'm going to have a small personal website only. My website is html and css only. I'm going to need to upload my index.html file to the public_html folder. Here's my question.

I was looking at the cpanel demo and noticed theirs a file named: index.php What should I do with the index.php file? Can I move it to another folder? Or should I delete it? Or can the index.html file and index.php file co exist together?

I'm familiar with cpanel as I've used it with a free host before. Uploaded all my files with "filezilla" into the public_html directory. The other host didn't have a index.php file already in the public_html directory. I uploaded my website and it worked good. This index.php file has me stumped though.

Your help will be greatly appreciated. Thanks.
Reply With Quote
  #2  
Old 04-17-2009, 09:46 PM
virtvir5's Avatar
virtvir5 virtvir5 is offline
King Croc
 
Join Date: Feb 2009
Location: Parry Sound, Canada
Posts: 1,245
Default Re: Quick Index.html Question

Quote:
Originally Posted by 2cents View Post
What should I do with the index.php file? Can I move it to another folder? Or should I delete it? Or can the index.html file and index.php file co exist together?
Yes, they can co-exist, but only one of them will be loaded by default. I think that will be your index.html file on Host Gator servers unless you change the order of precedence in an .htaccess file. In any case, if it's not the one you want, you can rename, move or delete the other one as you prefer.
__________________
Regards, Richard
VIRtech.org
Reply With Quote
  #3  
Old 04-17-2009, 09:47 PM
cleanxhost's Avatar
cleanxhost cleanxhost is offline
Royal Croc
 
Join Date: Sep 2007
Location: Costa del Sol - Spain
Posts: 556
Default Re: Quick Index.html Question

Hello,
Im pretty sure that your index.html file will override the index.php file so you can either leave it there or delete it if you want to.
__________________
A REAL man loves his woman every day of the month
http://www.piclikes.com/like/444
Green Cigs
http://www.greencigs.info
Reply With Quote
  #4  
Old 04-17-2009, 09:49 PM
cleanxhost's Avatar
cleanxhost cleanxhost is offline
Royal Croc
 
Join Date: Sep 2007
Location: Costa del Sol - Spain
Posts: 556
Default Re: Quick Index.html Question

Quote:
Originally Posted by cleanxhost View Post
Hello,
Im pretty sure that your index.html file will override the index.php file so you can either leave it there or delete it if you want to.

virtvir5 beat me by a minute!
__________________
A REAL man loves his woman every day of the month
http://www.piclikes.com/like/444
Green Cigs
http://www.greencigs.info
Reply With Quote
  #5  
Old 04-17-2009, 09:53 PM
gwyneth's Avatar
gwyneth gwyneth is offline
Supreme Croc
 
Join Date: Sep 2006
Location: up north
Posts: 6,843
Default Re: Quick Index.html Question

Quote:
Originally Posted by 2cents View Post
I was looking at the cpanel demo and noticed theirs a file named: index.php What should I do with the index.php file? Can I move it to another folder? Or should I delete it? Or can the index.html file and index.php file co exist together?

I'm familiar with cpanel as I've used it with a free host before. Uploaded all my files with "filezilla" into the public_html directory. The other host didn't have a index.php file already in the public_html directory. I uploaded my website and it worked good. This index.php file has me stumped though.

Your help will be greatly appreciated. Thanks.
The files you can access through the cPanel demo are not necessarily going to be there in your empty shared hosting account, as HG turns it over to you.

If there is an index.php in your account at that point, just delete it.
Reply With Quote
  #6  
Old 04-17-2009, 09:53 PM
virtvir5's Avatar
virtvir5 virtvir5 is offline
King Croc
 
Join Date: Feb 2009
Location: Parry Sound, Canada
Posts: 1,245
Default Re: Quick Index.html Question

@cleanxhost: Heh Heh. Sorry, but at least we seem to agree and aren't confusing the OP with conflicting advice.
__________________
Regards, Richard
VIRtech.org

Last edited by virtvir5; 04-17-2009 at 09:56 PM.
Reply With Quote
  #7  
Old 04-17-2009, 10:35 PM
2cents 2cents is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 11
Default Re: Quick Index.html Question

Thanks for the quick responses everyone. You've all been so helpful. Now it's time to put in my order. Wait for my email, then head over to godaddy and change the nameservers.
Reply With Quote
  #8  
Old 04-17-2009, 11:57 PM
2cents 2cents is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 11
Default Re: Quick Index.html Question

I just signed up for the "Baby" hosting. After signing up I received a welcome email from hostgator welcoming me to the family. The email stated that I would receive another email which would contain my dns server stuff in about 20 minutes. (I'm paraphrasing here)

Actually, I think I received it in about 10 minutes. I've already went to godaddy and changed the nameservers. I'm very impressed with the speed. Good job hostgator. Now I only have to wait for the dns propitation or whatever it's called to take place.
Reply With Quote
  #9  
Old 04-20-2009, 07:35 PM
2cents 2cents is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 11
Default Re: Quick Index.html Question

Quote:
Originally Posted by gwyneth View Post
The files you can access through the cPanel demo are not necessarily going to be there in your empty shared hosting account, as HG turns it over to you.
Hi gwyneth. I thought I would update this in case someone else had the same question. When I logged into cpanel..their was only 2 files in the "public_html "folder. default.html and one other file I can't remember. I uploaded my index.html file and it overides the default.html.

Website has been up and running since the other night. No problems at all. Everything is working good and the site loads Fast. Glad I chose Hostgator.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access index.html or index.php from a folder outside public_html jonel Shared Hosting Support 1 10-02-2008 07:08 AM
Content-type: text/html appearing at top of index.html page acketon Shared Hosting Support 4 07-21-2007 11:35 AM
index.html Soly86 Pre-Sales Questions 6 07-16-2007 04:29 AM

All times are GMT -5. The time now is 02:41 AM.