How can i run files without putting extension

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hitesh
Forum Newbie
Posts: 2
Joined: Sat Apr 22, 2006 1:32 am

How can i run files without putting extension

Post by hitesh »

Hello guys

I have one question. I want to run any files from server without putting any type of extension.

ex: http://www.test.com/index.php

so when i write only http://www.test.com/index then same page will be open.


If u have any idea about this plz reply as soon as possible.

Regards
Hits
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post by AKA Panama Jack »

You need to add MultiViews to your directory options in the http.conf for apache for each directory you have designated for web access.

Code: Select all

<Directory />
    Options Indexes FollowSymLinks Includes ExecCGI MultiViews
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>
Post Reply