Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

At the moment, when I type:


in my webbrowser, Apache serves the same page if I were typing


Unfortunatelly relative links present in HTML won't work with the first version. How do I make Apache serve 404 error, if I type not exact URL?

share|improve this question
up vote 3 down vote accepted

Disable PATH_INFO feature:

AcceptPathInfo Off


share|improve this answer
Exactly what I needed. Thanks. – user1065145 Dec 13 '12 at 13:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.