Answer the question
In order to leave comments, you need to log in
How to fix urlManager ignoring everything up to index.php in the request?
I need to redirect everything that goes to mysite.com/phpBB3/index.php?whatever_here to 404. But the problem is that urlManager ignores everything up to index.php in the request.
That is, I can write even mysite.com/dfdfd/dfdfdf/dfdfd/fd/fdf/index.php/ or mysite.com/index.php/index.php/index.php/index.php/index.php/ and it will lead to site/index.
How to solve it?
Answer the question
In order to leave comments, you need to log in
This is solved by the web server settings, for a more accurate answer, specify which web server is used for the site and provide its configuration.
you can create a phpBB3 folder in it an index.php file, in which you can simply display an error, it should work with standard server settings. Yes, and the request will be easier, bypassing the yii core connections
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question