Website Babble Webmaster Forums  

  #1 (permalink)  
Old 10-13-2007, 05:21 AM
UFO UFO is offline
Junior Babbler
 
Join Date: Oct 2007
Posts: 4
UFO has a few positive reputation points
Default homepage error

I need help with setting my homepage. When I type in my homepage into the url, I get this message:

Multiple Choices
The document name you requested (/index.html) could not be found on this server. However, we found documents with names similar to the one you requested.
Available documents:

/index.php (common basename)


Then I have to click on the /index.php to get to my homepage. I have looked into my directory and index.html is not there but index.php is. I am using internet explorer 7. Do I have to edit some find so that it will look for index.php first? If I do, which files?

Thanks for your help.

UFO
Reply With Quote
  #2 (permalink)  
Old 10-13-2007, 12:58 PM
Supreme Babbler
 
Join Date: Apr 2007
Posts: 563
webdev has a few positive reputation points
Default

UFO, this is a problem on your host side? Are viewing site on your home server or on the net?

You or your host needs to edit the apache config file and add index.php as a default main page. If index.html is not there, it will directly go to index.php.


If you're accessing this on your maching, go to your apache folder, open up httpd.conf file and look for the word "DirectoryIndex" in the file.

On that line, just add index.php besides index.html there.

hope this helps.
Reply With Quote
  #3 (permalink)  
Old 10-13-2007, 01:18 PM
UFO UFO is offline
Junior Babbler
 
Join Date: Oct 2007
Posts: 4
UFO has a few positive reputation points
Default

I am viewing my site on the net. I can't find the file you suggested. I am using php nuke 8.1. I see index.php along with other files. I'm thinking it could be the .htaccess file that I need to upload to my directory and have it redirect it to find index.php instead of index.html, but I have no clue on doing this.
Reply With Quote
  #4 (permalink)  
Old 10-13-2007, 01:22 PM
Master Babbler
 
Join Date: Jul 2007
Posts: 252
Bingo has a few positive reputation points
Default

Quote:
Originally Posted by UFO View Post
I'm thinking it could be the .htaccess file that I need to upload to my directory and have it redirect it to find index.php instead of index.html.
Its either going to be your .htaccess file or a setting in your control panel. Remove the .htaccess file from the server and test the site again, what happens?

Can you copy the .htaccess code and post it here?
Reply With Quote
  #5 (permalink)  
Old 10-13-2007, 02:40 PM
UFO UFO is offline
Junior Babbler
 
Join Date: Oct 2007
Posts: 4
UFO has a few positive reputation points
Default

That is the problem. In my root directory, there is no .htaccess file. I have talk to someone and they have shown me what I needed to put. My site is up and running.

Thanks for the suggestion and help.

UFO
Reply With Quote
  #6 (permalink)  
Old 10-13-2007, 02:55 PM
Master Babbler
 
Join Date: Jul 2007
Posts: 252
Bingo has a few positive reputation points
Default

The .htaccess file is probably hidden in the root, standard for hosts to do this. Do you have access to a control panel? If so go into the file manager and into the root folder, there should be an option to 'show hidden files' or something similar.
Reply With Quote
  #7 (permalink)  
Old 10-13-2007, 03:31 PM
Supreme Babbler
 
Join Date: Apr 2007
Posts: 563
webdev has a few positive reputation points
Default

it was .htaccess file after all. Glad you solve the problem. Did you already have a .htaccess file in there? Was it from before? Not sure why your host would make you add redirect rules in the .htaccess to run index.php page? Normally, if the server can't find index.html and/or index.htm file it automatically redirects to index.php.
Reply With Quote
  #8 (permalink)  
Old 10-13-2007, 05:19 PM
UFO UFO is offline
Junior Babbler
 
Join Date: Oct 2007
Posts: 4
UFO has a few positive reputation points
Default

The .htaccess file wasn't hidden or in the root directory at all. My friend had to send me one he made and I just upload it into the root directory. I'm just glad this issue is solved but still more things to be done that I still need to figure out.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 08:07 AM.



WB Sponsors

Profit Lance Review

Work At Home Jobs

Houston Web Design

Search Engine Optimization

flash chat



 Subscribe to the Website Babble Feeds

2 Create a Website Homepage | 2 Create a Website Blog


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0