Fixes issue #314
Merge pull request #344 from pvankouteren/issue-314-niceurls-doesnt-work

NiceUrls fix