It does not work if you have the WP files in a folder.
This is completely wrong. Wordpress works just fine installed into a subdirectory, but displayed from the site root. This is how I have it on my own site and I've set up a number of others this way. The WP documentation even has instructions on how to do it.
If you want useful replies, ask smart questions.