Web Hosting Talk







View Full Version : index.php Default Help


CSTSUPERMAN
09-15-2002, 12:31 PM
I recently moved my site to a new server. I now have it up and running again.
I have php enabled my local machine to run as a local web host so i can edit and view the pages before uploading.

The one problem I am having now is I can not view the pages that are not in the root folder. And even in the root folder, if i click on the "Home" link, which refers to /index.php. I get the following error.


HTTP Error 403 - Forbidden
Internet Explorer

When I mouse_over the links it shows the correct directory_path, but some reason index.php does not come up as the default page. I get the same error as above.

Is there a variable or switch I need to change or set?

Any help would be greatly appreciated, as I am learning, obviously.

ffeingol
09-15-2002, 12:34 PM
Sounds like the DirectoryIndex is not setup to look for index.php. It should be something like:

DirectoryIndex index.php index.html

Frank

akashik
09-15-2002, 01:48 PM
you can drop that into a text file and name it .htaccess if you don't have access to root. Just upload it to your site's directory and all should become good again

Greg Moore

prosayist
09-15-2002, 10:43 PM
Originally posted by CSTSUPERMAN
can not view the pages that are not in the root folder

you can add your <VirtualHost> information to httpd.conf, but you must also (assumed = if(windows).. I don't know anything else yet) edit your HOSTS file to recognize the host

Originally posted by CSTSUPERMAN
local machine to run ... local web host

Originally posted by akashik
if you don't have access to root

:confused: