Forum Discussion

Ram_T_S's avatar
Ram_T_S
Icon for Altostratus rankAltostratus
Jul 12, 2018

Irule Query

SharePoint 2010Sharepoint2016(Upgraded version) We currently have below application structure

1)http://home.xyz.com 2)http://home.xyz.com/Site1 3)http://home.xyz.com/Site1/SiteA 4)http://home.xyz.com/Site2 5)http://home.xyz.com/Site2/SiteB 6)

During the migration life cycle at some point we would have moved only 2 sites Eg:

2)http://new-home.xyz.com/Site1 3)http://new-home.xyz.com/Site1/SiteA

There is only one host entry home.xyz.com pointing to VIPWe would create a new DNS entry pointing to new VIP and new webfront ends as “new-home.xyz.com” All these sites are in one Web applicationAll these sites will still be in one Web application

Question:

1)Can we point multiple requests to multiple VIP by doing a redirection? Eg: http://home.xyz.com should still point to SharePoint 2010 server and when user hits •http://home.xyz.com/Site1(should be redirected to http://new-home.xyz.com/Site1) •http://home.xyz.com/Site1/SiteA (be redirected to http://new-home.xyz.com/Site1/SiteA) Basically I am looking at a wildcard redirection possibility like http://home.xyz.com/Site1* pointing to new SharePoint environment.

Irule proposed for this request:

when HTTP_REQUEST { if { ( [string tolower [HTTP::uri]] starts_with "/site1" ) } { HTTP::redirect "; } elseif {( [string tolower [HTTP::uri]] starts_with "/SiteA" ) } { HTTP::redirect "; } }

No RepliesBe the first to reply