P
P
potnii2016-11-10 16:12:24
Yii
potnii, 2016-11-10 16:12:24

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

2 answer(s)
E
eudj1n, 2016-11-10
@eudj1n

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.

M
Maxim Timofeev, 2016-11-10
@webinar

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 question

Ask a Question

731 491 924 answers to any question