开发者

identify Apache config directive

My website has a file: www.m开发者_运维技巧ydomain.com/contact.php

If I request any of the following (which do not exist), apache serves the contact.php page. www.mydomain.com/contact www.mydomain.com/contact/ www.mydomain.com/contact/anything/else/here

How can I determine what part of the apache config to change to disallow this?

The apache server is running on a CentOS 5 box if that makes any difference.


This is called MultiViews.

A .htaccess file or modifying your httpd.conf with Options -MultiViews should do the trick.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜