htaccess for subdirectories, add rewritebase
Merge pull request #136 from bndr/htaccess_fix

Fixes #94