Forum Discussion
Dennis_Goss_70_
Jan 02, 2016Nimbostratus
Thanks - the commented line works but redirects everything to the root of the site at the new location - not ideal since most folks love their deep link bookmarks...
The last line is my latest attempt - not tested yet so it may be a winner? Thanks for the help!
when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] {
"/oas/ops/programs*" { HTTP::redirect "https://www.mycompany.com[HTTP::uri]" }
"/offices/management/ocio/eng/tacticalcommunications*" { HTTP::redirect "https://www.mycompany.com/sites/taccom" }
"/offices/management/ocio/eng/tacticalcommunications*" { HTTP::redirect [string map {"/offices/management/ocio/eng/tacticalcommunications/" "/sites/taccom/"}[HTTP::uri]]}
} }