in reply to url rewriter?

First of all you should really store $Request->ServerVariables("SERVER_NAME")->item() in a temporary variable; all that repetition makes your code really hard to read.

Then I'm confused that you are talking about redirects in your text, but your code actually appends something that looks vaguely like HTML to a string. How are the two related? And what do you expect as a return value? What did the working code do in such a case?

Perl 6 - links to (nearly) everything that is Perl 6.