how to make any file append an extention?

SupermanInNY

Verified User
Joined
Sep 28, 2004
Messages
419
Hi All,

I recently moved users from a cPanel box that had an interesting feature:

http://domain.com/file

If file is a directory,. it would obviously search for the index.html within.

If file should have been actually file.php, the server would automatically know to dispaly file correctly, even though it is not explicitly written.

I don't know how that is done.
I have a user who simply write:

http://domain.com/search

His real file name is search.php but he omitted the .php extension and it still works!

Any pointers on how to accomplish that?

Thanks,

-Alon.
 
Back
Top