Is there a way I could use htaccess' url rewriting feature to look like there's a file in let's say the /public/some/folder when it's actually in /public.

For example I have index.php in root folder and I want it to be like that when I access index.php then it could also behave as its in all the folders and subfolders too

When I execute index.php then it will also execute in all folders and subfolders too

index.php should behave as if its also in other folders too without uploading index.php manually to each folder I want to have index.php in main folder only and want to execute it in other folders too at the same time