roger10dc_46053
Sep 17, 2010Nimbostratus
URI Rewrite
Hi,
How can I redirect a URI from:
http://www.xyz.com/something/howto.hml
to
http://www.xyz.com/somethingX/howto.hml
Jon
I would accomplish your example via the following. I'm assuming you want to redirect if 1) the host is "www.xyz.com" and 2) the URI is "/something/howto.html"
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "www.xyz.com" and [string tolower [HTTP::uri]] eq "/something/howto.html" } {
HTTP::redirect "http://www.xyz.com/somethingX/howto.html" } }