fix mod-rewrite for redirect to URIs, fixes #1261

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