Fix #59

And avoid using RainTPL::base_url in rewrite engine. That was hacky…