I am working on Yii2
. My main URL is http://ip/backend/web/
. Whenever a user opens this link he will be redirected towards a home page
But if a user changes the URL from http://ip/backend/web/
to http://ip/backend/
the below screen will be shown
I want all users not to access it. Like if anyone hit the http://ip/backend/
it will not allow any user to see that page
I searched for the solution and found out the following link Prevent users from accessing a url directly Yii 2 but still, I am unable to perform the task
How can I do this?