Fix rewriting resulting in requests with '//'
as the beginning of the path.
Merge pull request #1 from thomassuckow/master

Fix rewriting resulting in requests with '//' as the beginning of the path.