whistle
Jul 29 2005, 05:42 PM
| | I feel embarrassed to say this, but I do fall in trouble. I put my scripts to public_html directory, and I forgot what I did.
When I go to my homepage, it shows all files and directories in the public_html directory, but not the right content of my homepage file index.html. If I click the index.html, the right content of index.html shows up. I means that the index.html or index.php won't be laughed.
I find and try to recover it over and over, nothing happens. I am like a boy who make a mistake that he can't understand. Can anyone tell my what did I do and how to recover it. Thanks.
|
Comment/Reply (w/o sign-up)
snlildude87
Jul 29 2005, 05:48 PM
It probably doesn't work because you have two files there--index.html and index.php. Which one do you want to use? If the latter, then delete the former. If the former, delete the latter. Try that to see if it works.
Comment/Reply (w/o sign-up)
boyCradle
Jul 29 2005, 06:03 PM
Have you tried deleting the default index.php file from the public_html folder? maybe you have deleted that default index page but have not uploaded your own index.php or index.html file. or the extension name of your index file is not correct.
Comment/Reply (w/o sign-up)
Dragonfly
Jul 29 2005, 06:16 PM
If you have installed or uploaded index.php and index.html as it is without cap-lock of any letters, if you type your site at the url locator, it will point to index.html not index.php, and there is absolutely no problem in keeping the two files together there. But if you want your site visitors to see index.php file, you must remove or rename index.html file. I'm using index.php as my index but whenever there is problem in php I just move index.php which I keep inside some other folder to show that something isn't working in my site, as a notice. You must check whether index.html file exist as it is and if possible EDIT the file and see the source code, copy and see how it appears at dreamweaver, you will come to know about it. All the best.
Comment/Reply (w/o sign-up)
SarCasM
Jul 29 2005, 07:49 PM
And if all else fails just open up the .htaccess file and add this to it at the bottum, " DirectoryIndex index.html" or .php or whatever file you want to be the index file.
Comment/Reply (w/o sign-up)
whistle
Jul 31 2005, 03:48 AM
I tried to delete index.php or index.html for leaving one on them, but the problem still exists. The full directories and files are displayed. Let me discribe it simple. After I install a preinstalled in my hosting cpanel, such as xoops, what I see is the full directories and files in the directory when I go to link "http://mydomain/xoops". Of course, there is a index.php. After I click on the index.php, everything goes fine. What I actually want to ask is how I should do to configure my cpanel to resolve it. Thank you.
Comment/Reply (w/o sign-up)
cmatcmextra
Jul 31 2005, 07:45 AM
When I visit your website everything's fine, unlike before. The index page displays correcting and the directory /xoops/ displays fine too. Does this mean the problem's solved?
Comment/Reply (w/o sign-up)
ashiezai
Jul 31 2005, 09:48 AM
hi there ... normally when there is index.html and index.php inside a folder .. it will display index.html as first priority as long as you did not change the .htaccess file to point to main page to index.php ... The problem is that you are trying to get index.html display in mydomain/xoops ... so make sure that your index.html in the madomain/xoops folder .. or an index.php in that folder not the parent folder ..
Comment/Reply (w/o sign-up)
rvovk
Jul 31 2005, 10:12 AM
I had same problem, I put two files into folder, index.php and index.html. I forgot about html file, i thought I had only php file inside my folder. But when I changed my php file there were not changes resultig in browser thus there was html file which has priority in being showed. Delete html file and php file will be normally shown.
Comment/Reply (w/o sign-up)
epox
Aug 1 2005, 04:15 PM
sometimes i have the same problem, i upload a file but it doesn't load, and i continue tryng until it works, it makes me bad it's so boring stay on front of my screen while it deciede to load. altought it loads, after all, what else can i ask. be patient
Comment/Reply (w/o sign-up)
Becca
Aug 3 2005, 07:17 AM
O.K I'm kind of closing this topic thingy now because you said you resolved your problem. If you haven't then PM me to reopen or something
Comment/Reply (w/o sign-up)
guangdian
Aug 3 2005, 02:46 AM
i think you can just change the index.html to index.htm try it. or your problem will be soluted
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : Indexhtml Work33
Looking for index, html, work
|
|
Searching Video's for index, html, work
|
advertisement
|
|