VirtualHosts の次の行で実現するフレンドリーな URL ソリューションを使用しています
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ script.php?$1
だから私はhttp://example.com/something/something/else/other/things/のようなURLを持つことができます
しかし、/ で始まるフォルダーを持つ URL を要求するユーザーに 404 ステータスを送信するにはどうすればよいでしょうか。(存在している必要はありません)
Example: http://example.com/.svn/this/should/be/404
Example: http://example.com/other/things/.cannot/access/here
Example: http://example.com/this/should/be/.denied
否定してはいけない例:
Example: http://example.com/t.his/is/ok
FilesMatch と DirectoryMatch で遊んでみましたが、これはより仮想的なパスであり、機能させることができませんでした。ご協力ありがとうございました