Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
route.phpここに行くと変更せずにhttp://example.com/teststandardNotFoundHttpExceptionが得られますが、最後にスラッシュがあると、http://example.com/test/Laravel は にリダイレクトしhttp://example.com/test?q=%2Ftest%2Fます。そのリダイレクトを無効にするにはどうすればよいですか?
route.php
http://example.com/test
NotFoundHttpException
http://example.com/test/
http://example.com/test?q=%2Ftest%2F
Apache で "AllowEncodedSlashes" ディレクティブを有効にします。
<VirtualHost *:80> AllowEncodedSlashes On </VirtualHost>
このディレクティブをオンにすると、URL でエンコードされたスラッシュを許可するよう Web サーバーに指示します。
さよなら