I asked a question yesterday about why the index.php is not being redirected to if you are inside a subdirectory. Which was marked as unclear what I was asking. I disagree with the flag and I'll clarify why my answer is clear. Line by line.
any redirect to
localhost/is simply redirected to index.php
This line is very simple and understandable. If you go to the localhost, you'll be redirected to the index.php page for certain conditions
but if you go inside the
localhost/phonesubdirectory, there's an index.php page too
Again this line makes it clear that there's an index.php page inside the directory
and as you type localhost/phone/ you are not redirected to the index.php page
Which means that if you type
localhost/ you are redirected to the index.php page and if you type
localhost/phone/ in the address bar then you are not redirected to the index.php page inside the phone directory. That's the problem.
Now I researched and attempted to solve my problem by adding another code block which in turns works but doesn't solve the problem.
but now all the url's inside /phone/ is showing blank.
This line says that after my attempt, all the urls' inside the phone directory shows a blank page. And by the blank page, what I mean is also in the question.
Perhaps I made myself clear on meta about why my question is clear,
The problem, the attempt at solution and before asking, I also researched about it and attempted to solve it first, but no luck.
That's why I asked it on SF.