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?
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.
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.
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?
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.
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.
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.
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.