fix rewrite-rule for redirects to URIs, fixes #1043

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>