Revert "Revert "Added URL rewriting for prettier URLs""

This reverts commit d797f621aa7f42bfb5ec685076bdfd53f9c95080.