JohnO Posted May 3, 2006 Posted May 3, 2006 This unsettling problem is similar to that of Why Won't My Index File Display?, from April 19. The problem started just after I edited my Comcast home page (http://home.comcast.net/~john.o/), which is just a placeholder. Now when I try to view the main page of my (practice) site at http://oggerino.com/, without specifying index.php, I am instead presented with my Comcast index.html with "http://oggerino.com/" showing in the address field! This happens in both Firefox and IE6. I've tried clearing all private data, exiting the browsers, rebooting, with no change. There is no problem with the subdirectories. All the links in my site to the home page, as they are now, display the Comcast page instead. Any ideas as to what happened? Thank you. John Quote
TCH-Bruce Posted May 3, 2006 Posted May 3, 2006 Do you have an index.htm or index.html file in your public_html folder? If so those will be called before the index.php file. Also check the .htaccess file and see if there are any redirect commands listed. Use File Manager in cPanel to view your .htaccess file. Quote
JohnO Posted May 3, 2006 Author Posted May 3, 2006 Yes, there was an index.html file in my public_html directory! And it just happened to be my Comcast one. I deleted it, and all is well again. I checked the .htaccess file. There are no redirect commands in it, but I did edit the DirectoryIndex line to make index.php first in the list. That's about the only editing I'm comfortable with in .htaccess files. Evidently, when I uploaded to comcast from my text editor (ftp capable) I didn't take a close enough look at the destination directory. This happened a while back, too, but that time it was an index file from one of my subdirectories, so it didn't throw me like this did. Thanks a bunch TCH-Bruce. John Quote
stevevan Posted May 4, 2006 Posted May 4, 2006 For others that might be following this thread, I use a index.html on one of my sites as a "this site is temporarily out of service" page while I'm updating things. Then, I simply rename index.html to index.html.bak. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.