Wrox Programmer Forums
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 5th, 2006, 08:09 AM
Authorized User
Join Date: Mar 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default Easy Question

Ok first the disclaimer, Im not a php programmer and I am only maintaining this php site, so naturally I have no Idea what Im doing.

Heres the problem:

When the site is loaded by domain name alone, it does not load the index.php page. Instead, it loads the index.html, which is only the background.
In order to get the correct page to display I have to enter
http://domain_name.com./index.php .
Old July 8th, 2006, 09:09 AM
Friend of Wrox
Join Date: Nov 2005
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts


have you tried to delete index.html from the server?

__________________________________________________ ________
This is my junk I'm gona eat it
Old July 12th, 2006, 05:03 AM
Friend of Wrox
Join Date: Jan 2006
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts

This isn't a PHP question, but an Apache HTTP Server question. Modify your httpd.conf file's DirectoryIndex property so that index.php is listed before index.html. I suspect the opposite is currently true, or index.php is not listed. If you're on a virtual host, you can also modify .htaccess in your server's root directory to contain "DirectoryIndex index.php index.html" to also implement the behavior.

Jon Emerson

Similar Threads
Thread Thread Starter Forum Replies Last Post
hopefully an easy question davehodges Access 1 November 7th, 2007 06:36 AM
Quick And easy question redchord C# 1 January 30th, 2007 09:45 AM
Easy Question yikomaka Visual C++ 0 June 13th, 2005 08:50 PM
Easy Question - I think gmoney060 Classic ASP Basics 3 November 2nd, 2004 06:54 PM
easy question khautinh C# 4 August 6th, 2003 01:17 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.