Expect redirect_from link to be a permalink, build file based on this

Fixes #6.