Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] HTTP Silent Redirect

From: vonja:sbcglobal at: 22-Sep-2008 22:46

Hello Rebol List, I'm attempting to do a "silent" http redirect via REBOL rather than an Apache mod_rewrite. In Apache it could be written as: RewriteRule ^secret_crush_prank/?$ /var/chroot/html/go/secret_crush_prank.html [NC,L] If the client visited the client would be silently redirected to another page without seeing the new URI location in the Address bar of the browser. I found the following on a Rebol archive but it only does a standard redirect. I've been trying to add different status codes to redirect silently but no success. --------------------------------------------------- REBOL [] http-redir: func [url] [ print join "Location: " url print join "Expires: 0" newline ] http-redir ---------------------------------------------------- Any suggestions? Thank you for your help in advance.