Rob_Notaro_7816
Nov 08, 2007Nimbostratus
Simple URL redirect
I just want a request from www1.company.com to redirect to www.company.com. I dont want to change anything that might be after the url.
Will this do the trick?
when HTTP_REQUEST {
if { [HTTP::host] equals "www1.company.com"} {
HTTP::header replace "Host" "www.company.com"
switch -glob [HTTP::uri]
}