Jump to content

Archived

This topic is now archived and is closed to further replies.

chillyb

File Extension

Recommended Posts

I\'ve re-installed Apache onto my server and I now cannot open any files in my browser without supplying the file extension. This is true for both .html files and .php files. Can any body help?

Share this post


Link to post
Share on other sites

so you want www.whatever.com/hello open hello.html

or do you want www.whatever.com to open index.html or index.php

Share this post


Link to post
Share on other sites

you have to include the trailing /

 

www.whatever.com/hello/

 

without the slash, the computer searches for file called hello with no file extention

 

also check that httpd.conf has all of the correct default file types under DirectoryIndex-

DirectoryIndex index.php index.html

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.