Forum Discussion

ed_woo_26237's avatar
ed_woo_26237
Icon for Nimbostratus rankNimbostratus
Mar 05, 2011

redirection and uri manipulation

My current irule shown below does not work 100% on my sharepoint 2007 zone site.

 

 

The sharepoint server pages are working for internal users since they are able to resolve http://internet.ehsd.ds.contra-costa.org (internal private domain) or http://internet/....

 

 

 

But when I browse using https://64.166.146.224 which is public facing , the browser will browse most of the site's links in each page; however, there are two areas where my browser receives the original link of http://internet.ehsd.ds.contra-costa.org/....

 

 

 

when HTTP_REQUEST { HTTP::header replace Host "internet.ehsd.ds.contra-costa.org" } when HTTP_RESPONSE { log local0.info "we are in the response section" if { [HTTP::header is_redirect]} { log local0.debug "we got is_redirect header" HTTP::header replace Location "[string map -nocase {http://internet.ehsd.ds.contra-costa.org https://64.166.146.224 http://internet/ https://64.166.146.224/} [HTTP::header value Location]]" } }

11 Replies