Magento custom root folder gives 404
Some time ago i faced this problem too.
The problem is about file permisions.
If you need to have a new folder into your magento, in order to put your script or something similar …
Create the folder, set permisions 755.
Add the php file or more php files and set the permission for the main file or index.php to 644.
That should be all. Enjoy.