It's just been brought to my attention that a slash after a file name or a slash and any random letters after a file name does not go to the errordocument 404 but displays the same page without the formatting. For example, www.example.com/index.html pages displays fine www.example.com/index.html/asdfsf displays the same page with out formatting www.example.com/about-us/example.html is fine www.example.com/about-us/example.html/opuipi displays page without formatting rather than the custom 404 page. How do i rectify this issue? I have looked a rewriting but what i have tested does not work. If anyone could point in the right direction? Thanks in advance.
If you add AcceptPathInfo Off to the Options or to the virtual host this stops the trailing slash of pages.