WordPress auto corrects the permalinks(URLs) even if it is entered incorrectly. For e.g. WordPress will land you in example.com/some-post
even if you enter example.com/idontexist/some-post
or even example.com/some
It could be that, WordPress uses RegEx like or some matching algorithm that compares from right to left and if it finds a match, it will take you to the page even if there are /.*/
left on the left. Just a guess! How does WordPress do this?
Edit: I also noticed that the .htaccess file checks for virtual file/directories using !f
and !d
and redirects the request to index.php on the blog folder.