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 http://www.domain.com/secret_crush_prank
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 http://www.domain.com/go/secret_crush_prank

----------------------------------------------------
Any suggestions? Thank you for your help
in advance.

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to