开发者

identify Apache config directive

开发者 https://www.devze.com 2023-01-05 01:40 出处:网络
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.

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

精彩评论

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