#55 domain mapping issue - fixes - pull request

This fixes issues on subfolder domain mapping.

This will work and tested on the following custom urls:
- `/%postname%/` - `example.com/example`
- `/example/%postname/` - `example.com/example/example`